public void destroy() {
        physicsBodies.clear();
        physicsJoints.clear();

        dynamicsWorld.destroy();
        dynamicsWorld = null;
    }
destroys the current PhysicsSpace so that a new one can be created
jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java