Example #1
0
 @Override
 protected void construct() {
   super.construct();
   gdxBridge = new GdxCollisionObjectBridge();
   internalSetGdxBridge(gdxBridge);
   addInstance(this);
 }
Example #2
0
 @Override
 public void dispose() {
   if (motionState != null) motionState.release();
   motionState = null;
   if (collisionShape != null) collisionShape.release();
   collisionShape = null;
   super.dispose();
 }
Example #3
0
 @Override
 public void dispose() {
   if (swigCPtr != 0) removeInstance(this);
   if (gdxBridge != null) gdxBridge.dispose();
   gdxBridge = null;
   if (collisionShape != null) collisionShape.release();
   collisionShape = null;
   super.dispose();
 }
Example #4
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btIDebugDraw(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btOverlappingPairCallback(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();
 }
Example #7
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       SoftbodyJNI.delete_SoftBodyConfigData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btConvexSeparatingDistanceUtil(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();
 }
Example #10
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btConvexHullComputer_Edge(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       ExtrasJNI.delete_btWorldImporter(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #12
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btAngularLimit(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #13
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btRigidBody_btRigidBodyConstructionInfo(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_ConvexResultCallback(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #15
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btCollisionObject(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btGeneric6DofConstraintData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btVector3DoubleData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btMultiSphereShapeData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected void finalize() throws Throwable {
   if (!destroyed) destroy();
   super.finalize();
 }
 @Override
 protected void reset(long cPtr, boolean cMemoryOwn) {
   if (!destroyed) destroy();
   super.reset(swigCPtr = cPtr, cMemoryOwn);
 }