public boolean needsCollision(btBroadphaseProxy proxy0) {
   return (getClass() == ConvexResultCallback.class)
       ? CollisionJNI.ConvexResultCallback_needsCollision(
           swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0)
       : CollisionJNI.ConvexResultCallback_needsCollisionSwigExplicitConvexResultCallback(
           swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0);
 }
示例#2
0
 public void removeOverlappingPairsContainingProxy(btBroadphaseProxy arg0, btDispatcher arg1) {
   if (getClass() == btGhostPairCallback.class)
     CollisionJNI.btGhostPairCallback_removeOverlappingPairsContainingProxy(
         swigCPtr, this, btBroadphaseProxy.getCPtr(arg0), arg0, btDispatcher.getCPtr(arg1), arg1);
   else
     CollisionJNI
         .btGhostPairCallback_removeOverlappingPairsContainingProxySwigExplicitbtGhostPairCallback(
             swigCPtr,
             this,
             btBroadphaseProxy.getCPtr(arg0),
             arg0,
             btDispatcher.getCPtr(arg1),
             arg1);
 }
示例#3
0
 public static btOptimizedBvh deSerializeInPlace(
     long i_alignedDataBuffer, long i_dataBufferSize, boolean i_swapEndian) {
   long cPtr =
       CollisionJNI.btOptimizedBvh_deSerializeInPlace(
           i_alignedDataBuffer, i_dataBufferSize, i_swapEndian);
   return (cPtr == 0) ? null : new btOptimizedBvh(cPtr, false);
 }
示例#4
0
 public String serialize(SWIGTYPE_p_void dataBuffer, SWIGTYPE_p_btSerializer serializer) {
   return CollisionJNI.btCollisionObject_serialize(
       swigCPtr,
       this,
       SWIGTYPE_p_void.getCPtr(dataBuffer),
       SWIGTYPE_p_btSerializer.getCPtr(serializer));
 }
 public static boolean aabbOverlap(
     btSimpleBroadphaseProxy proxy0, btSimpleBroadphaseProxy proxy1) {
   return CollisionJNI.btSimpleBroadphase_aabbOverlap(
       btSimpleBroadphaseProxy.getCPtr(proxy0),
       proxy0,
       btSimpleBroadphaseProxy.getCPtr(proxy1),
       proxy1);
 }
示例#6
0
 public void addCollisionObject(btCollisionObject collisionObject, short collisionFilterGroup) {
   CollisionJNI.btCollisionWorld_addCollisionObject__SWIG_1(
       swigCPtr,
       this,
       btCollisionObject.getCPtr(collisionObject),
       collisionObject,
       collisionFilterGroup);
 }
 public void cleanProxyFromPairs(btBroadphaseProxy proxy, btDispatcher dispatcher) {
   CollisionJNI.btOverlappingPairCache_cleanProxyFromPairs(
       swigCPtr,
       this,
       btBroadphaseProxy.getCPtr(proxy),
       proxy,
       btDispatcher.getCPtr(dispatcher),
       dispatcher);
 }
示例#8
0
 public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, RayResultCallback resultCallback) {
   CollisionJNI.btCollisionWorld_rayTest(
       swigCPtr,
       this,
       rayFromWorld,
       rayToWorld,
       RayResultCallback.getCPtr(resultCallback),
       resultCallback);
 }
示例#9
0
 public void contactTest(btCollisionObject colObj, ContactResultCallback resultCallback) {
   CollisionJNI.btCollisionWorld_contactTest(
       swigCPtr,
       this,
       btCollisionObject.getCPtr(colObj),
       colObj,
       ContactResultCallback.getCPtr(resultCallback),
       resultCallback);
 }
示例#10
0
 public boolean testAabbOverlap(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) {
   return CollisionJNI.btSimpleBroadphase_testAabbOverlap(
       swigCPtr,
       this,
       btBroadphaseProxy.getCPtr(proxy0),
       proxy0,
       btBroadphaseProxy.getCPtr(proxy1),
       proxy1);
 }
 public boolean needsBroadphaseCollision(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) {
   return CollisionJNI.btHashedOverlappingPairCache_needsBroadphaseCollision(
       swigCPtr,
       this,
       btBroadphaseProxy.getCPtr(proxy0),
       proxy0,
       btBroadphaseProxy.getCPtr(proxy1),
       proxy1);
 }
示例#12
0
 public void processAllOverlappingPairs(btOverlapCallback arg0, btDispatcher dispatcher) {
   CollisionJNI.btOverlappingPairCache_processAllOverlappingPairs(
       swigCPtr,
       this,
       btOverlapCallback.getCPtr(arg0),
       arg0,
       btDispatcher.getCPtr(dispatcher),
       dispatcher);
 }
示例#13
0
 public btBroadphasePair addOverlappingPair(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) {
   return btBroadphasePair.internalTemp(
       (getClass() == btGhostPairCallback.class)
           ? CollisionJNI.btGhostPairCallback_addOverlappingPair(
               swigCPtr,
               this,
               btBroadphaseProxy.getCPtr(proxy0),
               proxy0,
               btBroadphaseProxy.getCPtr(proxy1),
               proxy1)
           : CollisionJNI.btGhostPairCallback_addOverlappingPairSwigExplicitbtGhostPairCallback(
               swigCPtr,
               this,
               btBroadphaseProxy.getCPtr(proxy0),
               proxy0,
               btBroadphaseProxy.getCPtr(proxy1),
               proxy1),
       false);
 }
 public void removeOverlappingPairsContainingProxy(
     btBroadphaseProxy proxy0, btDispatcher dispatcher) {
   CollisionJNI.btOverlappingPairCallback_removeOverlappingPairsContainingProxy(
       swigCPtr,
       this,
       btBroadphaseProxy.getCPtr(proxy0),
       proxy0,
       btDispatcher.getCPtr(dispatcher),
       dispatcher);
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btConvexInternalAabbCachingShape(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#16
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btSimpleBroadphase(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#17
0
 public void rayTest(
     Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin) {
   CollisionJNI.btSimpleBroadphase_rayTest__SWIG_1(
       swigCPtr,
       this,
       rayFrom,
       rayTo,
       btBroadphaseRayCallback.getCPtr(rayCallback),
       rayCallback,
       aabbMin);
 }
示例#18
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btOverlappingPairCache(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btConvexConcaveCollisionAlgorithm_SwappedCreateFunc(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btDefaultCollisionConfiguration(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#21
0
 public void updateBvhNodes(
     btStridingMeshInterface meshInterface, int firstNode, int endNode, int index) {
   CollisionJNI.btOptimizedBvh_updateBvhNodes(
       swigCPtr,
       this,
       btStridingMeshInterface.getCPtr(meshInterface),
       meshInterface,
       firstNode,
       endNode,
       index);
 }
示例#22
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btOptimizedBvh(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btCollisionObjectDoubleData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#24
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btGhostPairCallback(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#25
0
 public btBroadphasePair findPair(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) {
   return btBroadphasePair.internalTemp(
       CollisionJNI.btOverlappingPairCache_findPair(
           swigCPtr,
           this,
           btBroadphaseProxy.getCPtr(proxy0),
           proxy0,
           btBroadphaseProxy.getCPtr(proxy1),
           proxy1),
       false);
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btActivatingCollisionAlgorithm(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_ClosestNotMeConvexResultCallback(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#28
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btCylinderShapeX(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#29
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btGImpactMeshShape(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btInternalTriangleIndexCallback(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }