Node.getLocalRotation() to Vector3f?

Hello!



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

bodyPhNode.getLocalRotation().multLocal(
            new Quaternion().fromAngleAxis(FastMath.DEG_TO_RAD * 0.1f,
                  Vector3f.UNIT_Y));



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:


bodyPhNode.setLinearVelocity(bodyPhNode.getLocalRotation()
               .getRotationColumn(2).normalize());



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