Beispiel #1
0
        public btStridingMeshInterface getMeshInterface()
        {
            global::System.IntPtr   cPtr = BulletPINVOKE.btConvexTriangleMeshShape_getMeshInterface__SWIG_0(swigCPtr);
            btStridingMeshInterface ret  = (cPtr == global::System.IntPtr.Zero) ? null : new btStridingMeshInterface(cPtr, false);

            return(ret);
        }
Beispiel #2
0
 public void refitPartial(btStridingMeshInterface triangles, btVector3 aabbMin, btVector3 aabbMax)
 {
     BulletPINVOKE.btOptimizedBvh_refitPartial(swigCPtr, btStridingMeshInterface.getCPtr(triangles), btVector3.getCPtr(aabbMin), btVector3.getCPtr(aabbMax));
     if (BulletPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
 public void build(btStridingMeshInterface triangles, bool useQuantizedAabbCompression, btVector3 bvhAabbMin, btVector3 bvhAabbMax)
 {
     BulletPINVOKE.btOptimizedBvh_build(swigCPtr, btStridingMeshInterface.getCPtr(triangles), useQuantizedAabbCompression, btVector3.getCPtr(bvhAabbMin), btVector3.getCPtr(bvhAabbMax));
     if (BulletPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public btConvexTriangleMeshShape(btStridingMeshInterface meshInterface) : this(BulletPINVOKE.new_btConvexTriangleMeshShape__SWIG_1(btStridingMeshInterface.getCPtr(meshInterface)), true)
 {
 }
Beispiel #5
0
 public btConvexTriangleMeshShape(btStridingMeshInterface meshInterface, bool calcAabb) : this(BulletPINVOKE.new_btConvexTriangleMeshShape__SWIG_0(btStridingMeshInterface.getCPtr(meshInterface), calcAabb), true)
 {
 }
Beispiel #6
0
 public btGImpactMeshShape(btStridingMeshInterface meshInterface)
     : base()
 {
     m_handle = BulletAPI_CreateBtGImpactMeshShape(meshInterface.Handle);
 }
	virtual btGImpactMeshShape* createGimpactShape(btStridingMeshInterface* trimesh);
	virtual btCollisionShape* createConvexTriangleMeshShape(btStridingMeshInterface* trimesh);
	virtual	btBvhTriangleMeshShape* createBvhTriangleMeshShape(btStridingMeshInterface* trimesh, btOptimizedBvh* bvh);
Beispiel #10
0
 public void updateBvhNodes(btStridingMeshInterface meshInterface, int firstNode, int endNode, int index)
 {
     BulletPINVOKE.btOptimizedBvh_updateBvhNodes(swigCPtr, btStridingMeshInterface.getCPtr(meshInterface), firstNode, endNode, index);
 }
Beispiel #11
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(btStridingMeshInterface obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }