New answers tagged quaternion
you should only need to rotate around the y axis or you can just say to look at the point on the y-axis at the same height of the camera target.y=0; target.normalize(); of course then you can start to optimize because axis is (0,1,0) and all the other ups will be the same again (do double check that though)
Don't move the player's position directly in response to keyboard input. Instead always move the player forward relative to the direction it's facing, and lerp to different rotations based on keyboard input.
Top 50 recent answers are included