@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(); }
private void internalSetGdxBridge(GdxCollisionObjectBridge bridge) { CollisionJNI.btCollisionObject_internalSetGdxBridge( swigCPtr, this, GdxCollisionObjectBridge.getCPtr(bridge), bridge); }
/** * @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); }
/** @param flag The new flag used to filter contact callbacks with this object */ public void setContactCallbackFlag(int flag) { gdxBridge.setContactCallbackFlag(contactCallbackFlag = flag); }
/** * @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); }