Keep track of a shapes' direction after rotating

Hello!



One more rotation question:

I know that I can get the orientation of a shape with getLocalRotation(), which gives me a Quaternion. However, I would like to have the direction, to which the shape is pointing at, as a Vector3f.



Example:

  • The inital direction of e.g. a tube is <0,1,0>
  • I apply some rotation via tube.setLocalRotation(some quaternion)
  • What is the direction now?



    Hope someone can help me…


see here: http://www.jmonkeyengine.com/forum/index.php?topic=11864.0;topicseen