public unsafe static float SolveAngularLimits(this RotationalLimitMotor obj, float timeStep, ref OpenTK.Vector3 axis, float jacDiagABInv, RigidBody body0, RigidBody body1)
 {
     fixed(OpenTK.Vector3 *axisPtr = &axis)
     {
         return(obj.SolveAngularLimits(timeStep, ref *(BulletSharp.Math.Vector3 *)axisPtr, jacDiagABInv, body0, body1));
     }
 }
 public RotationalLimitMotor GetRotationalLimitMotor(int index)
 {
     if (_angularLimits[index] == null)
     {
         _angularLimits[index] = new RotationalLimitMotor(btGeneric6DofConstraint_getRotationalLimitMotor(_native, index), true);
     }
     return(_angularLimits[index]);
 }
 public int GetLimitMotorInfo2(RotationalLimitMotor limitMotor, Matrix transA,
                               Matrix transB, Vector3 linVelA, Vector3 linVelB, Vector3 angVelA, Vector3 angVelB,
                               ConstraintInfo2 info, int row, ref Vector3 ax1, int rotational, int rotAllowed)
 {
     return(btGeneric6DofConstraint_get_limit_motor_info22(_native, limitMotor._native,
                                                           ref transA, ref transB, ref linVelA, ref linVelB, ref angVelA, ref angVelB,
                                                           info._native, row, ref ax1, rotational, rotAllowed));
 }
 public RotationalLimitMotor(RotationalLimitMotor limitMotor)
 {
     _native = btRotationalLimitMotor_new2(limitMotor._native);
 }
 public RotationalLimitMotor(RotationalLimitMotor limitMotor)
 {
     _native = btRotationalLimitMotor_new2(limitMotor._native);
 }
 public RotationalLimitMotor GetRotationalLimitMotor(int index)
 {
     if (_angularLimits[index] == null)
     {
         _angularLimits[index] = new RotationalLimitMotor(btGeneric6DofConstraint_getRotationalLimitMotor(_native, index), true);
     }
     return _angularLimits[index];
 }
 public int GetLimitMotorInfo2(RotationalLimitMotor limitMotor, Matrix transA, Matrix transB, Vector3 linVelA, Vector3 linVelB, Vector3 angVelA, Vector3 angVelB, ConstraintInfo2 info, int row, out Vector3 ax1, int rotational, int rotAllowed)
 {
     return btGeneric6DofConstraint_get_limit_motor_info22(_native, limitMotor._native, ref transA, ref transB, ref linVelA, ref linVelB, ref angVelA, ref angVelB, info._native, row, out ax1, rotational, rotAllowed);
 }
Example #8
0
        public RotationalLimitMotor(RotationalLimitMotor limitMotor)
        {
            IntPtr native = btRotationalLimitMotor_new2(limitMotor.Native);

            InitializeUserOwned(native);
        }