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