Ejemplo n.º 1
0
 protected virtual void CreateBodyAndCollision()
 {
     if (m_collision == null && m_body == null)
     {
         m_collision = new NewtonBodyCollision(this);
         m_body      = new dNewtonDynamicBody(m_world.GetWorld(), m_collision.GetShape(), Utils.ToMatrix(transform.position, transform.rotation), m_mass);
     }
 }
Ejemplo n.º 2
0
 protected override void CreateBodyAndCollision()
 {
     Debug.Log("create actual vehicle");
     m_collision = new NewtonBodyCollision(this);
     m_body      = new dNewtonVehicle(m_world.GetWorld(), m_collision.GetShape(), Utils.ToMatrix(transform.position, transform.rotation), m_mass);
 }