Ejemplo n.º 1
0
 private static extern IntPtr CreateCollisionBody_Native(IntPtr pworld, Mathematics.Vector3 pos,
                                                         Mathematics.Quaternion rot, UpdateRigidBodyCallback cback);
Ejemplo n.º 2
0
 private static extern void SetGravity_Native(IntPtr pworld, Mathematics.Vector3 gravuty);
Ejemplo n.º 3
0
 internal CollisionBody(Mathematics.Vector3 pos, Mathematics.Quaternion rot)
 {
     position = pos;
     rotation = rot;
     shapes   = new List <CollisionShape>();
 }
Ejemplo n.º 4
0
 internal void OnCollisionBodyUpdate(Mathematics.Vector3 pos, Mathematics.Quaternion rot)
 {
     position = pos;
     rotation = rot;
 }
Ejemplo n.º 5
0
 public void SetTransform(Mathematics.Vector3 position, Mathematics.Quaternion rotation)
 {
     this.position = position;
     this.rotation = rotation;
     SetTransformCb_Native(NativePtr, position, rotation);
 }
Ejemplo n.º 6
0
 private static extern void SetTransformCb_Native(IntPtr cb, Mathematics.Vector3 pos, Mathematics.Quaternion rot);
Ejemplo n.º 7
0
 private static extern void ApplyTorque_Native(IntPtr rb, Mathematics.Vector3 torque);
Ejemplo n.º 8
0
 private static extern void ApplyForceToCenterOfMass_Native(IntPtr rb, Mathematics.Vector3 force);
Ejemplo n.º 9
0
 private static extern void ApplyForce_Native(IntPtr rb, Mathematics.Vector3 force, Mathematics.Vector3 pos);