/** * Stop physics after this state is detached. */ public void stopPhysics() { if(!initialized){ return; } if (executor != null) { executor.shutdown(); executor = null; } pSpace.removeTickListener(this); pSpace.destroy(); initialized = false; }
/** * Stop physics after this state is detached. */ public void stopPhysics() { if(!initialized){ return; } if (executor != null) { executor.shutdown(); executor = null; } pSpace.removeTickListener(this); pSpace.destroy(); initialized = false; }
public void cleanup() { if (executor != null) { executor.shutdown(); executor = null; } pSpace.removeTickListener(this); pSpace.destroy(); }
public void stopPhysics() { if(!initialized){ return; } if (executor != null) { executor.shutdown(); executor = null; } pSpace.removeTickListener(this); pSpace.destroy(); initialized = false; }
/** * Stop physics after this state is detached. */ public void stopPhysics() { if(!initialized){ return; } if (executor != null) { executor.shutdown(); executor = null; } pSpace.removeTickListener(this); pSpace.destroy(); initialized = false; }