In my game I have the functionality to "reset" the scene. This should reset the location of all physics objects to their original position. What is the recommended way of doing this? Setting the local translation on the dynamic physics nodes does not work.
Setting the local translation on the dynamic physics nodes does not work.
It does. Just reset dynamics as well (velocity and forces).
I localized the bug. I used a final static Vector3f constant to store the initial position of the physics object, but it was mutated by jME
private static final Vector3f GOLF_BALL_LOCATION
Thanks for the help.
By the way, in no tutorial I read that these Objects are shared and not defensively copied. I think this is an important information. The Javadocs should mention this also.