Node.getLocalRotation() to Vector3f?


Not feeling all right with quaternions… I have a node which revolves arround Y axis:

            new Quaternion().fromAngleAxis(FastMath.DEG_TO_RAD * 0.1f,

I'd like to get the "direction" of this node as a Vector3f object, just like you can recover the direction of a Camera object. Can anyone please show me how to perform this? Thanks!

note: This is meant to apply a force on the node, so that its accelerate towards the direction it is facing. Why not call it a spaceship :wink:

oh hehe  :stuck_out_tongue:


looks like this works fine. The forum had already been questioned about this :D