Esempio n. 1
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();
 }
Esempio n. 2
0
 private void internalSetGdxBridge(GdxCollisionObjectBridge bridge) {
   CollisionJNI.btCollisionObject_internalSetGdxBridge(
       swigCPtr, this, GdxCollisionObjectBridge.getCPtr(bridge), bridge);
 }
Esempio n. 3
0
 /**
  * @param filter The new filter that is used to match the flag of the other object for a contact
  *     callback to be triggered
  */
 public void setContactCallbackFilter(int filter) {
   gdxBridge.setContactCallbackFilter(contactCallbackFilter = filter);
 }
Esempio n. 4
0
 /** @param flag The new flag used to filter contact callbacks with this object */
 public void setContactCallbackFlag(int flag) {
   gdxBridge.setContactCallbackFlag(contactCallbackFlag = flag);
 }
Esempio n. 5
0
 /**
  * @param value A user definable value which allows you to quickly identify this collision object.
  *     Some frequently called methods rather return this value than the collision object itself to
  *     minimize JNI overhead.
  */
 public void setUserValue(int value) {
   gdxBridge.setUserValue(userValue = value);
 }