Exemplo n.º 1
0
 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 5
0
 public static boolean aabbOverlap(
     btSimpleBroadphaseProxy proxy0, btSimpleBroadphaseProxy proxy1) {
   return CollisionJNI.btSimpleBroadphase_aabbOverlap(
       btSimpleBroadphaseProxy.getCPtr(proxy0),
       proxy0,
       btSimpleBroadphaseProxy.getCPtr(proxy1),
       proxy1);
 }
Exemplo n.º 6
0
 public void addCollisionObject(btCollisionObject collisionObject, short collisionFilterGroup) {
   CollisionJNI.btCollisionWorld_addCollisionObject__SWIG_1(
       swigCPtr,
       this,
       btCollisionObject.getCPtr(collisionObject),
       collisionObject,
       collisionFilterGroup);
 }
Exemplo n.º 7
0
 public void cleanProxyFromPairs(btBroadphaseProxy proxy, btDispatcher dispatcher) {
   CollisionJNI.btOverlappingPairCache_cleanProxyFromPairs(
       swigCPtr,
       this,
       btBroadphaseProxy.getCPtr(proxy),
       proxy,
       btDispatcher.getCPtr(dispatcher),
       dispatcher);
 }
Exemplo n.º 8
0
 public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, RayResultCallback resultCallback) {
   CollisionJNI.btCollisionWorld_rayTest(
       swigCPtr,
       this,
       rayFromWorld,
       rayToWorld,
       RayResultCallback.getCPtr(resultCallback),
       resultCallback);
 }
Exemplo n.º 9
0
 public void contactTest(btCollisionObject colObj, ContactResultCallback resultCallback) {
   CollisionJNI.btCollisionWorld_contactTest(
       swigCPtr,
       this,
       btCollisionObject.getCPtr(colObj),
       colObj,
       ContactResultCallback.getCPtr(resultCallback),
       resultCallback);
 }
Exemplo n.º 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);
 }
Exemplo n.º 12
0
 public void processAllOverlappingPairs(btOverlapCallback arg0, btDispatcher dispatcher) {
   CollisionJNI.btOverlappingPairCache_processAllOverlappingPairs(
       swigCPtr,
       this,
       btOverlapCallback.getCPtr(arg0),
       arg0,
       btDispatcher.getCPtr(dispatcher),
       dispatcher);
 }
Exemplo n.º 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);
 }
Exemplo n.º 14
0
 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();
 }
Exemplo n.º 16
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btSimpleBroadphase(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 24
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btGhostPairCallback(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Exemplo n.º 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();
 }
Exemplo n.º 28
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btCylinderShapeX(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Exemplo n.º 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();
 }