getCPtr() static private method

static private getCPtr ( SWIGTYPE_p_btCollisionShape obj ) : HandleRef
obj SWIGTYPE_p_btCollisionShape
return System.Runtime.InteropServices.HandleRef
コード例 #1
0
 public btRigidBodyConstructionInfo(float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape) : this(BulletDynamicsPINVOKE.new_btRigidBodyConstructionInfo__SWIG_1(mass, SWIGTYPE_p_btMotionState.getCPtr(motionState), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape)), true)
 {
 }
コード例 #2
0
 public btTriIndex(int partId, int triangleIndex, SWIGTYPE_p_btCollisionShape shape) : this(BulletSoftBodyPINVOKE.new_btTriIndex(partId, triangleIndex, SWIGTYPE_p_btCollisionShape.getCPtr(shape)), true)
 {
 }
コード例 #3
0
 public virtual void removeChildShape(SWIGTYPE_p_btCollisionShape shape)
 {
     BulletCollisionPINVOKE.btCompoundShape_removeChildShape(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(shape));
 }
コード例 #4
0
 public btRigidBodyConstructionInfo(float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btVector3 localInertia) : this(BulletDynamicsPINVOKE.new_btRigidBodyConstructionInfo__SWIG_0(mass, SWIGTYPE_p_btMotionState.getCPtr(motionState), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btVector3.getCPtr(localInertia)), true)
 {
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
        public static uint Hash(int x, int y, int z, SWIGTYPE_p_btCollisionShape shape)
        {
            uint ret = BulletSoftBodyPINVOKE.btSparseSdf3_Hash(x, y, z, SWIGTYPE_p_btCollisionShape.getCPtr(shape));

            return(ret);
        }
コード例 #6
0
 public void addChildShape(SWIGTYPE_p_btTransform localTransform, SWIGTYPE_p_btCollisionShape shape)
 {
     BulletCollisionPINVOKE.btCompoundShape_addChildShape(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(localTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #7
0
        public float Evaluate(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 normal, float margin)
        {
            float ret = BulletSoftBodyPINVOKE.btSparseSdf3_Evaluate(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(normal), margin);

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
        public static float DistanceToShape(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape)
        {
            float ret = BulletSoftBodyPINVOKE.btSparseSdf3_DistanceToShape(SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape));

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
        public int RemoveReferences(SWIGTYPE_p_btCollisionShape pcs)
        {
            int ret = BulletSoftBodyPINVOKE.btSparseSdf3_RemoveReferences(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(pcs));

            return(ret);
        }
コード例 #10
0
 public static void objectQuerySingle(SWIGTYPE_p_btConvexShape castShape, SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback, float allowedPenetration)
 {
     BulletCollisionPINVOKE.btCollisionWorld_objectQuerySingle(SWIGTYPE_p_btConvexShape.getCPtr(castShape), SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback), allowedPenetration);
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #11
0
 public static void rayTestSingle(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback)
 {
     BulletCollisionPINVOKE.btCollisionWorld_rayTestSingle(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #12
0
 public virtual void debugDrawObject(SWIGTYPE_p_btTransform worldTransform, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 color)
 {
     BulletCollisionPINVOKE.btCollisionWorld_debugDrawObject(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(worldTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(color));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #13
0
 public virtual void setCollisionShape(SWIGTYPE_p_btCollisionShape collisionShape)
 {
     BulletCollisionPINVOKE.btCollisionObject_setCollisionShape(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape));
 }