Example #1
0
 protected virtual void CreateBodyAndCollision()
 {
     if (m_Collision == null && m_Body == null)
     {
         m_Collision = new NewtonBodyCollision(this);
         m_Body      = new dNewtonDynamicBody(World.GetWorld(), m_Collision.GetShape(), Utils.ToMatrix(m_CachedTransform.position, m_CachedTransform.rotation), m_Mass);
     }
 }
 protected override void CreateBodyAndCollision()
 {
     Debug.Log("create actual vehicle");
     m_Collision = new NewtonBodyCollision(this);
     m_Body      = new dNewtonVehicle(World.GetWorld(), m_Collision.GetShape(), Utils.ToMatrix(transform.position, transform.rotation), m_Mass);
 }
Example #3
0
 protected override void CreateBodyAndCollision()
 {
     m_Collision = new NewtonBodyCollision(this);
     m_Body      = new dNewtonKinematicBody(World.GetWorld(), m_Collision.GetShape(), Utils.ToMatrix(transform.position, transform.rotation), m_Mass);
 }