SetWorldTranslation & SetWorldRotation?

I just noticed there are no methods for setting the world translation and rotation, only the local translation and rotation. Maybe you could add them.

You actually should never set any of the world fields (bounds, transforms, etc.)  These are created and maintained by the scenegraph based on your local values.

Is there a way so I can convert world translations into local translations? maybe something like this:

worldTranslation.substract(localTranslation);

there are Spatial.worldToLocal() and Spatial.localToWorld() which you can use to convert between local and world positions.



for example, this is how i set the Location of my ChaseCam.


camNode.getLocalTranslation().interpolate(target.localToWorld(
                                  new Vector3f(0, yDistance, zDistance), null),
                                  0.3f);



that way the Cameras position is set to the Targets World position with a y and z offset.