Refactor Physics Colliders to use auto serialization.
This commit is contained in:
@@ -58,24 +58,6 @@ bool SphereCollider::IntersectsItself(const Ray& ray, Real& distance, Vector3& n
|
||||
return _sphere.Intersects(ray, distance, normal);
|
||||
}
|
||||
|
||||
void SphereCollider::Serialize(SerializeStream& stream, const void* otherObj)
|
||||
{
|
||||
// Base
|
||||
Collider::Serialize(stream, otherObj);
|
||||
|
||||
SERIALIZE_GET_OTHER_OBJ(SphereCollider);
|
||||
|
||||
SERIALIZE_MEMBER(Radius, _radius);
|
||||
}
|
||||
|
||||
void SphereCollider::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
|
||||
{
|
||||
// Base
|
||||
Collider::Deserialize(stream, modifier);
|
||||
|
||||
DESERIALIZE_MEMBER(Radius, _radius);
|
||||
}
|
||||
|
||||
void SphereCollider::UpdateBounds()
|
||||
{
|
||||
// Cache bounds
|
||||
|
||||
Reference in New Issue
Block a user