Move a spatial object according to its direction


Have you a sample to explain how move a spatial according to its direction.

I have a robot that I rotate but I want move it to a step to its new direction.

Someone can help me ?


If i remember correctly:

getLocalRotation().getRotationColumn(2) should get you the Vector3f to work with. X is forward.