My gme is one where you dont stop moving. you control the direction. Inevatably, I ran into a problem. If I have a Quanternion with the rotation, how do I translate the spatial based on the Quaternion?
You read the documentation. Which has been the same answer we’ve given you the past week or so now…
https://wiki.jmonkeyengine.org/tutorials/scenegraph/assets/player/KeynoteDHTMLPlayer.html#0
Sounds like you need a bit of the following.
spatial.setLocalTranslation(spatial.getLocalTranslation.add(spatial.getLocalRotation().getRotationColumn(2)));
2 Likes