(2017-10-20, 12:06)Michael Horvath Wrote:(2017-10-19, 1:26)Michael Horvath Wrote: There is a bug/oversight. When FPS Mode is turned on, the camera should rotate around the universe's vertical axis no matter where the camera is pointing to. Instead, the camera is rotating around its own axis, and then auto-correcting so that its vertical axis points toward the universe's up direction. It's not a big deal, but I don't understand how I did not notice this until now.
I started a thread here.
https://gamedev.stackexchange.com/questi...e-controls
As you can see, I am fumbling trying to find a solution.
It would probably be much easier if you keep track of the 'eye' position in model space, and the abs left/right and up/down angles. then you can construct a model view matrix from those at any time by calculating the look at direction using the two angles and shift the scene so the eye is behind the 'screen' plane.