protected override void OnOwnerSet() { m_Physics = Owner.GetPhysicsComponent(); if (m_Physics == null) throw new InvalidOperationException("Error finding physics on which to base our speed on"); base.OnOwnerSet(); }
void OnBodyAdded(RigidBodyComponent body) { m_World.AddBody(body.Body); }
void OnBodyRemoved(RigidBodyComponent body) { m_World.RemoveBody(body.Body); }
public Ennemy() { m_location = new LocationComponent(this); m_rigidBody = new RigidBodyComponent(this, m_location); }