Example #1
0
        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();
        }
Example #2
0
 void OnBodyAdded(RigidBodyComponent body)
 {
     m_World.AddBody(body.Body);
 }
Example #3
0
 void OnBodyRemoved(RigidBodyComponent body)
 {
     m_World.RemoveBody(body.Body);
 }
Example #4
0
 public Ennemy()
 {
     m_location = new LocationComponent(this);
     m_rigidBody = new RigidBodyComponent(this, m_location);
 }