Player rotation

Hi everyone, i have a  problem so I hope You will help me;)



I just have loaded a player(soldier) model from Blender to my FPF game and I don't know how to rotate it during  move. I supposed that I need to do something with Ray, becouse model should lock where ray faces (from cameraLocation- model to cameraDirection) but unfortunately I dont't know how…

Please somebody help me or give me an idea how to solve this problem, thanks:)

All spatials have a nice lookAt() method, maybe that helps… Otherwise you will possibly have to dive into quaternions…



Cheers,

Normen