示例#1
0
 public btRotationalLimitMotor(btRotationalLimitMotor limot) : this(BulletDynamicsPINVOKE.new_btRotationalLimitMotor__SWIG_1(btRotationalLimitMotor.getCPtr(limot)), true)
 {
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
        public btTranslationalLimitMotor getTranslationalLimitMotor()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btGeneric6DofConstraint_getTranslationalLimitMotor(swigCPtr);
            btTranslationalLimitMotor ret = (cPtr == IntPtr.Zero) ? null : new btTranslationalLimitMotor(cPtr, false);

            return(ret);
        }
        public SWIGTYPE_p_btCollisionObject GetCollisionObject()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btRigidBody_GetCollisionObject(swigCPtr);
            SWIGTYPE_p_btCollisionObject ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btCollisionObject(cPtr, false);

            return(ret);
        }
示例#4
0
        public virtual SWIGTYPE_p_btTypedConstraint getConstraint(int index)
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_getConstraint__SWIG_0(swigCPtr, index);
            SWIGTYPE_p_btTypedConstraint ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btTypedConstraint(cPtr, false);

            return(ret);
        }
        public static btRigidBody upcast(SWIGTYPE_p_btCollisionObject colObj)
        {
            IntPtr      cPtr = BulletDynamicsPINVOKE.btRigidBody_upcast__SWIG_0(SWIGTYPE_p_btCollisionObject.getCPtr(colObj));
            btRigidBody ret  = (cPtr == IntPtr.Zero) ? null : new btRigidBody(cPtr, false);

            return(ret);
        }
示例#6
0
        public SWIGTYPE_p_btSimulationIslandManager getSimulationIslandManager()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_getSimulationIslandManager__SWIG_0(swigCPtr);
            SWIGTYPE_p_btSimulationIslandManager ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btSimulationIslandManager(cPtr, false);

            return(ret);
        }
        public SWIGTYPE_p_btMotionState getMotionState()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btRigidBody_getMotionState__SWIG_0(swigCPtr);
            SWIGTYPE_p_btMotionState ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btMotionState(cPtr, false);

            return(ret);
        }
 public btRigidBody(btRigidBodyConstructionInfo constructionInfo) : this(BulletDynamicsPINVOKE.new_btRigidBody__SWIG_0(btRigidBodyConstructionInfo.getCPtr(constructionInfo)), true)
 {
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public SWIGTYPE_p_btBroadphaseProxy getBroadphaseProxy()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btRigidBody_getBroadphaseProxy__SWIG_0(swigCPtr);
            SWIGTYPE_p_btBroadphaseProxy ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btBroadphaseProxy(cPtr, false);

            return(ret);
        }
 public btTranslationalLimitMotor(btTranslationalLimitMotor other) : this(BulletDynamicsPINVOKE.new_btTranslationalLimitMotor__SWIG_1(btTranslationalLimitMotor.getCPtr(other)), true)
 {
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public virtual SWIGTYPE_p_btConstraintSolver getConstraintSolver()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btSimpleDynamicsWorld_getConstraintSolver(swigCPtr);
            SWIGTYPE_p_btConstraintSolver ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btConstraintSolver(cPtr, false);

            return(ret);
        }
        public btRigidBody getRigidBody()
        {
            IntPtr      cPtr = BulletDynamicsPINVOKE.btRaycastVehicle_getRigidBody__SWIG_0(swigCPtr);
            btRigidBody ret  = (cPtr == IntPtr.Zero) ? null : new btRigidBody(cPtr, false);

            return(ret);
        }
示例#13
0
        public SWIGTYPE_p_btCollisionWorld getCollisionWorld()
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_getCollisionWorld(swigCPtr);
            SWIGTYPE_p_btCollisionWorld ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btCollisionWorld(cPtr, false);

            return(ret);
        }
        public SWIGTYPE_p_btTypedConstraint getConstraintRef(int index)
        {
            IntPtr cPtr = BulletDynamicsPINVOKE.btRigidBody_getConstraintRef(swigCPtr, index);
            SWIGTYPE_p_btTypedConstraint ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btTypedConstraint(cPtr, false);

            return(ret);
        }
示例#15
0
 public void setMotorTargetInConstraintSpace(SWIGTYPE_p_btQuaternion q)
 {
     BulletDynamicsPINVOKE.btConeTwistConstraint_setMotorTargetInConstraintSpace(swigCPtr, SWIGTYPE_p_btQuaternion.getCPtr(q));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#16
0
 public void calcAngleInfo2(SWIGTYPE_p_btTransform transA, SWIGTYPE_p_btTransform transB, SWIGTYPE_p_btMatrix3x3 invInertiaWorldA, SWIGTYPE_p_btMatrix3x3 invInertiaWorldB)
 {
     BulletDynamicsPINVOKE.btConeTwistConstraint_calcAngleInfo2(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(transA), SWIGTYPE_p_btTransform.getCPtr(transB), SWIGTYPE_p_btMatrix3x3.getCPtr(invInertiaWorldA), SWIGTYPE_p_btMatrix3x3.getCPtr(invInertiaWorldB));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void setPivotB(SWIGTYPE_p_btVector3 pivotB)
 {
     BulletDynamicsPINVOKE.btPoint2PointConstraint_setPivotB(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(pivotB));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void getInfo2NonVirtual(btConstraintInfo2 info, SWIGTYPE_p_btTransform body0_trans, SWIGTYPE_p_btTransform body1_trans)
 {
     BulletDynamicsPINVOKE.btPoint2PointConstraint_getInfo2NonVirtual(swigCPtr, btConstraintInfo2.getCPtr(info), SWIGTYPE_p_btTransform.getCPtr(body0_trans), SWIGTYPE_p_btTransform.getCPtr(body1_trans));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public new void setAxis(SWIGTYPE_p_btVector3 axis1, SWIGTYPE_p_btVector3 axis2)
 {
     BulletDynamicsPINVOKE.btUniversalConstraint_setAxis(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(axis1), SWIGTYPE_p_btVector3.getCPtr(axis2));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void updateWheelTransformsWS(SWIGTYPE_p_btWheelInfo wheel)
 {
     BulletDynamicsPINVOKE.btRaycastVehicle_updateWheelTransformsWS__SWIG_1(swigCPtr, SWIGTYPE_p_btWheelInfo.getCPtr(wheel));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void setGravity(SWIGTYPE_p_btVector3 gravity)
 {
     BulletDynamicsPINVOKE.btSimpleDynamicsWorld_setGravity(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(gravity));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void getAabb(SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax)
 {
     BulletDynamicsPINVOKE.btRigidBody_getAabb(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#23
0
 public virtual void setFrames(SWIGTYPE_p_btTransform frameA, SWIGTYPE_p_btTransform frameB)
 {
     BulletDynamicsPINVOKE.btConeTwistConstraint_setFrames(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(frameA), SWIGTYPE_p_btTransform.getCPtr(frameB));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#24
0
 public virtual void solveConstraintObsolete(SWIGTYPE_p_btSolverBody bodyA, SWIGTYPE_p_btSolverBody bodyB, float timeStep)
 {
     BulletDynamicsPINVOKE.btConeTwistConstraint_solveConstraintObsolete(swigCPtr, SWIGTYPE_p_btSolverBody.getCPtr(bodyA), SWIGTYPE_p_btSolverBody.getCPtr(bodyB), timeStep);
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void proceedToTransform(SWIGTYPE_p_btTransform newTrans)
 {
     BulletDynamicsPINVOKE.btRigidBody_proceedToTransform(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(newTrans));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void setAngularFactor(SWIGTYPE_p_btVector3 angFac)
 {
     BulletDynamicsPINVOKE.btRigidBody_setAngularFactor__SWIG_0(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(angFac));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#27
0
 public void getInfo2NonVirtual(btConstraintInfo2 info, SWIGTYPE_p_btTransform transA, SWIGTYPE_p_btTransform transB, SWIGTYPE_p_btMatrix3x3 invInertiaWorldA, SWIGTYPE_p_btMatrix3x3 invInertiaWorldB)
 {
     BulletDynamicsPINVOKE.btConeTwistConstraint_getInfo2NonVirtual(swigCPtr, btConstraintInfo2.getCPtr(info), SWIGTYPE_p_btTransform.getCPtr(transA), SWIGTYPE_p_btTransform.getCPtr(transB), SWIGTYPE_p_btMatrix3x3.getCPtr(invInertiaWorldA), SWIGTYPE_p_btMatrix3x3.getCPtr(invInertiaWorldB));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void translate(SWIGTYPE_p_btVector3 v)
 {
     BulletDynamicsPINVOKE.btRigidBody_translate(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(v));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual new void setAxis(SWIGTYPE_p_btVector3 axis1, SWIGTYPE_p_btVector3 axis2)
 {
     BulletDynamicsPINVOKE.btGeneric6DofSpringConstraint_setAxis(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(axis1), SWIGTYPE_p_btVector3.getCPtr(axis2));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void predictIntegratedTransform(float step, SWIGTYPE_p_btTransform predictedTransform)
 {
     BulletDynamicsPINVOKE.btRigidBody_predictIntegratedTransform(swigCPtr, step, SWIGTYPE_p_btTransform.getCPtr(predictedTransform));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }