예제 #1
0
 @Override
 protected void construct() {
   super.construct();
   gdxBridge = new GdxCollisionObjectBridge();
   internalSetGdxBridge(gdxBridge);
   addInstance(this);
 }
예제 #2
0
 @Override
 public void dispose() {
   if (motionState != null) motionState.release();
   motionState = null;
   if (collisionShape != null) collisionShape.release();
   collisionShape = null;
   super.dispose();
 }
예제 #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();
 }
예제 #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();
 }
예제 #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();
 }
예제 #10
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btConvexHullComputer_Edge(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #11
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       ExtrasJNI.delete_btWorldImporter(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #12
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btAngularLimit(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #13
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btRigidBody_btRigidBodyConstructionInfo(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #14
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_ConvexResultCallback(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #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();
 }
예제 #17
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btVector3DoubleData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #18
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       CollisionJNI.delete_btMultiSphereShapeData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
예제 #19
0
 @Override
 protected void finalize() throws Throwable {
   if (!destroyed) destroy();
   super.finalize();
 }
예제 #20
0
 @Override
 protected void reset(long cPtr, boolean cMemoryOwn) {
   if (!destroyed) destroy();
   super.reset(swigCPtr = cPtr, cMemoryOwn);
 }