Model rotation problems with ThirdPersonHandler

Hello all!

I am having trouble with my player's model being rotated 180 degrees in the wrong direction–facing the user. In another jME project I fixed this with:

playerNode.setLocalRotation( new Quaternion().fromAngleAxis( FastMath.PI, new Vector3f(0,1,0)) );  


However, I am using the ThirdPersonHandler class and not the KeyNodeRotateRightAction or KeyNodeRotateLeftAction classes. I have tried to remedy this problem with the code posted above and the model is facing the correct way when the game is initiated but when a key is pressed (ie. the W key to move the model forward) the model is then rotated to face player.
Here is a picture:


What can I do to fix this rotation problem?

Thanks!
-- Methyl

Rotate your model correctly, then attach it to a new Node, that way the rotation is 'saved'.



Then only use this new Node when moving the player.

Thanks!  :slight_smile: