getCPtr() static private method

static private getCPtr ( SWIGTYPE_p_float obj ) : HandleRef
obj SWIGTYPE_p_float
return System.Runtime.InteropServices.HandleRef
 public static void btSwapScalarEndian(float sourceVal, SWIGTYPE_p_float destVal)
 {
     LinearMathPINVOKE.btSwapScalarEndian(sourceVal, SWIGTYPE_p_float.getCPtr(destVal));
     if (LinearMathPINVOKE.SWIGPendingException.Pending)
     {
         throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public void getEulerZYX(SWIGTYPE_p_float yaw, SWIGTYPE_p_float pitch, SWIGTYPE_p_float roll)
 {
     LinearMathPINVOKE.btMatrix3x3_getEulerZYX__SWIG_1(swigCPtr, SWIGTYPE_p_float.getCPtr(yaw), SWIGTYPE_p_float.getCPtr(pitch), SWIGTYPE_p_float.getCPtr(roll));
     if (LinearMathPINVOKE.SWIGPendingException.Pending)
     {
         throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void getOpenGLMatrix(SWIGTYPE_p_float m)
 {
     LinearMathPINVOKE.btTransform_getOpenGLMatrix(swigCPtr, SWIGTYPE_p_float.getCPtr(m));
 }
Example #4
0
 public void calculatePrincipalAxisTransform(SWIGTYPE_p_btTransform principal, SWIGTYPE_p_btVector3 inertia, SWIGTYPE_p_float volume)
 {
     BulletCollisionPINVOKE.btConvexTriangleMeshShape_calculatePrincipalAxisTransform(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(principal), SWIGTYPE_p_btVector3.getCPtr(inertia), SWIGTYPE_p_float.getCPtr(volume));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void project(SWIGTYPE_p_btTransform trans, SWIGTYPE_p_btVector3 dir, SWIGTYPE_p_float minProj, SWIGTYPE_p_float maxProj, SWIGTYPE_p_btVector3 witnesPtMin, SWIGTYPE_p_btVector3 witnesPtMax)
 {
     BulletCollisionPINVOKE.btConvexHullShape_project(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(trans), SWIGTYPE_p_btVector3.getCPtr(dir), SWIGTYPE_p_float.getCPtr(minProj), SWIGTYPE_p_float.getCPtr(maxProj), SWIGTYPE_p_btVector3.getCPtr(witnesPtMin), SWIGTYPE_p_btVector3.getCPtr(witnesPtMax));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 public void calculatePrincipalAxisTransform(SWIGTYPE_p_float masses, SWIGTYPE_p_btTransform principal, SWIGTYPE_p_btVector3 inertia)
 {
     BulletCollisionPINVOKE.btCompoundShape_calculatePrincipalAxisTransform(swigCPtr, SWIGTYPE_p_float.getCPtr(masses), SWIGTYPE_p_btTransform.getCPtr(principal), SWIGTYPE_p_btVector3.getCPtr(inertia));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public btCPUVertexBufferDescriptor(SWIGTYPE_p_float basePointer, int vertexOffset, int vertexStride, int normalOffset, int normalStride) : this(BulletSoftBodyPINVOKE.new_btCPUVertexBufferDescriptor__SWIG_1(SWIGTYPE_p_float.getCPtr(basePointer), vertexOffset, vertexStride, normalOffset, normalStride), true)
 {
 }
        public static bool btRayAabb(btVector3 rayFrom, btVector3 rayTo, btVector3 aabbMin, btVector3 aabbMax, SWIGTYPE_p_float param, btVector3 normal)
        {
            bool ret = LinearMathPINVOKE.btRayAabb(btVector3.getCPtr(rayFrom), btVector3.getCPtr(rayTo), btVector3.getCPtr(aabbMin), btVector3.getCPtr(aabbMax), SWIGTYPE_p_float.getCPtr(param), btVector3.getCPtr(normal));

            if (LinearMathPINVOKE.SWIGPendingException.Pending)
            {
                throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static bool btRayAabb2(btVector3 rayFrom, btVector3 rayInvDirection, SWIGTYPE_p_unsigned_int raySign, btVector3 bounds, SWIGTYPE_p_float tmin, float lambda_min, float lambda_max)
        {
            bool ret = LinearMathPINVOKE.btRayAabb2(btVector3.getCPtr(rayFrom), btVector3.getCPtr(rayInvDirection), SWIGTYPE_p_unsigned_int.getCPtr(raySign), btVector3.getCPtr(bounds), SWIGTYPE_p_float.getCPtr(tmin), lambda_min, lambda_max);

            if (LinearMathPINVOKE.SWIGPendingException.Pending)
            {
                throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public static void calculateDiffAxisAngle(btTransform transform0, btTransform transform1, btVector3 axis, SWIGTYPE_p_float angle)
 {
     LinearMathPINVOKE.btTransformUtil_calculateDiffAxisAngle(btTransform.getCPtr(transform0), btTransform.getCPtr(transform1), btVector3.getCPtr(axis), SWIGTYPE_p_float.getCPtr(angle));
     if (LinearMathPINVOKE.SWIGPendingException.Pending)
     {
         throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public btMultiSphereShape(SWIGTYPE_p_btVector3 positions, SWIGTYPE_p_float radi, int numSpheres) : this(BulletCollisionPINVOKE.new_btMultiSphereShape(SWIGTYPE_p_btVector3.getCPtr(positions), SWIGTYPE_p_float.getCPtr(radi), numSpheres), true)
 {
 }
        public float compute(SWIGTYPE_p_float coords, int stride, int count, float shrink, float shrinkClamp)
        {
            float ret = LinearMathPINVOKE.btConvexHullComputer_compute__SWIG_0(swigCPtr, SWIGTYPE_p_float.getCPtr(coords), stride, count, shrink, shrinkClamp);

            return(ret);
        }
Example #13
0
 public void setFromOpenGLSubMatrix(SWIGTYPE_p_float m)
 {
     LinearMathPINVOKE.btMatrix3x3_setFromOpenGLSubMatrix(swigCPtr, SWIGTYPE_p_float.getCPtr(m));
 }
        public int minDot(btVector3 array, int array_count, SWIGTYPE_p_float dotOut)
        {
            int ret = LinearMathPINVOKE.btVector3_minDot(swigCPtr, btVector3.getCPtr(array), array_count, SWIGTYPE_p_float.getCPtr(dotOut));

            if (LinearMathPINVOKE.SWIGPendingException.Pending)
            {
                throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static btSoftBody CreatePatchUV(btSoftBodyWorldInfo worldInfo, SWIGTYPE_p_btVector3 corner00, SWIGTYPE_p_btVector3 corner10, SWIGTYPE_p_btVector3 corner01, SWIGTYPE_p_btVector3 corner11, int resx, int resy, int fixeds, bool gendiags, SWIGTYPE_p_float tex_coords)
        {
            IntPtr     cPtr = BulletSoftBodyPINVOKE.btSoftBodyHelpers_CreatePatchUV__SWIG_0(btSoftBodyWorldInfo.getCPtr(worldInfo), SWIGTYPE_p_btVector3.getCPtr(corner00), SWIGTYPE_p_btVector3.getCPtr(corner10), SWIGTYPE_p_btVector3.getCPtr(corner01), SWIGTYPE_p_btVector3.getCPtr(corner11), resx, resy, fixeds, gendiags, SWIGTYPE_p_float.getCPtr(tex_coords));
            btSoftBody ret  = (cPtr == IntPtr.Zero) ? null : new btSoftBody(cPtr, false);

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }