public virtual SWIGTYPE_p_float getBasePointer()
        {
            IntPtr           cPtr = BulletSoftBodyPINVOKE.btCPUVertexBufferDescriptor_getBasePointer(swigCPtr);
            SWIGTYPE_p_float ret  = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);

            return(ret);
        }
Beispiel #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();
     }
 }
Beispiel #3
0
 public 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.btConvexPolyhedron_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();
     }
 }
Beispiel #4
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 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();
     }
 }
        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);
        }
 internal static HandleRef getCPtr(SWIGTYPE_p_float obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
        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);
        }
Beispiel #9
0
 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 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();
 }
Beispiel #11
0
 public btSoftBody(btSoftBodyWorldInfo worldInfo, int node_count, SWIGTYPE_p_btVector3 x, SWIGTYPE_p_float m)
     : this(BulletSoftBodyPINVOKE.new_btSoftBody__SWIG_0(btSoftBodyWorldInfo.getCPtr(worldInfo), node_count, SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_float.getCPtr(m)), true)
 {
 }
Beispiel #12
0
 public void setFromOpenGLSubMatrix(SWIGTYPE_p_float m)
 {
     LinearMathPINVOKE.btMatrix3x3_setFromOpenGLSubMatrix(swigCPtr, SWIGTYPE_p_float.getCPtr(m));
 }
Beispiel #13
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();
     }
 }
Beispiel #14
0
 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;
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_float obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
        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 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 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)
 {
 }
Beispiel #22
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 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();
 }
Beispiel #24
0
 public int rayTest(SWIGTYPE_p_btVector3 rayFrom, SWIGTYPE_p_btVector3 rayTo, SWIGTYPE_p_float mint, SWIGTYPE_p_btSoftBody__eFeature___ feature, SWIGTYPE_p_int index, bool bcountonly)
 {
     int ret = BulletSoftBodyPINVOKE.btSoftBody_rayTest__SWIG_1(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(rayFrom), SWIGTYPE_p_btVector3.getCPtr(rayTo), SWIGTYPE_p_float.getCPtr(mint), SWIGTYPE_p_btSoftBody__eFeature___.getCPtr(feature), SWIGTYPE_p_int.getCPtr(index), bcountonly);
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 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 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;
 }
Beispiel #27
0
 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();
 }
 public static void calculateDiffAxisAngleQuaternion(btQuaternion orn0, btQuaternion orn1a, btVector3 axis, SWIGTYPE_p_float angle)
 {
     LinearMathPINVOKE.btTransformUtil_calculateDiffAxisAngleQuaternion(btQuaternion.getCPtr(orn0), btQuaternion.getCPtr(orn1a), btVector3.getCPtr(axis), SWIGTYPE_p_float.getCPtr(angle));
     if (LinearMathPINVOKE.SWIGPendingException.Pending) throw LinearMathPINVOKE.SWIGPendingException.Retrieve();
 }
 public 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.btConvexPolyhedron_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();
 }
Beispiel #30
0
 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;
 }
Beispiel #31
0
 public void setFromOpenGLSubMatrix(SWIGTYPE_p_float m)
 {
     LinearMathPINVOKE.btMatrix3x3_setFromOpenGLSubMatrix(swigCPtr, SWIGTYPE_p_float.getCPtr(m));
 }
 public void getOpenGLMatrix(SWIGTYPE_p_float m) {
   LinearMathPINVOKE.btTransform_getOpenGLMatrix(swigCPtr, SWIGTYPE_p_float.getCPtr(m));
 }
 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 void getOpenGLMatrix(SWIGTYPE_p_float m)
 {
     LinearMathPINVOKE.btTransform_getOpenGLMatrix(swigCPtr, SWIGTYPE_p_float.getCPtr(m));
 }
        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);
        }