public void SetMotorTarget(Quaternion qAinB, float dt)
 {
     var o = (HingeConstraintImp) _hci.UserObject;
     o._hci.SetMotorTarget(Translater.QuaternionToBtQuaternion(qAinB), dt);
 }
 public Fusee.Math.Quaternion BtQuaternionToQuaternion(BulletSharp.Quaternion btQuaternion)
 {
     var retval = new Fusee.Math.Quaternion(btQuaternion.X, btQuaternion.Y, btQuaternion.Z, btQuaternion.W);
     return retval;
 }
 public void SetMotorTarget(Quaternion q)
 {
     _cti.SetMotorTarget(Translater.QuaternionToBtQuaternion(q));
 }
 public void SetMotorTargetInConstraintSpace(Quaternion q)
 {
     _cti.SetMotorTargetInConstraintSpace(Translater.QuaternionToBtQuaternion(q));
 }
Пример #5
0
        public BulletSharp.Quaternion QuaternionToBtQuaternion(Fusee.Math.Quaternion quaternion)
        {
            var retval = new BulletSharp.Quaternion(quaternion.x, quaternion.y, quaternion.z, quaternion.w);

            return(retval);
        }
Пример #6
0
        public Fusee.Math.Quaternion BtQuaternionToQuaternion(BulletSharp.Quaternion btQuaternion)
        {
            var retval = new Fusee.Math.Quaternion(btQuaternion.X, btQuaternion.Y, btQuaternion.Z, btQuaternion.W);

            return(retval);
        }
Пример #7
0
        public void SetMotorTarget(Quaternion qAinB, float dt)
        {
            var o = (HingeConstraintImp)_hci.UserObject;

            o._hci.SetMotorTarget(Translater.QuaternionToBtQuaternion(qAinB), dt);
        }
Пример #8
0
 public void SetMotorTargetInConstraintSpace(Quaternion q)
 {
     _cti.SetMotorTargetInConstraintSpace(Translater.QuaternionToBtQuaternion(q));
 }
Пример #9
0
 public void SetMotorTarget(Quaternion q)
 {
     _cti.SetMotorTarget(Translater.QuaternionToBtQuaternion(q));
 }