I’m attempting to make a first-person camera and control its rotation using the mouse. This works fine for the most part but I’m having an issue when the camera turns to the side and looks up or down. It looks like it changes the roll/z-axis instead of the X axis.
If you look at that example and slowly move the mouse up/down or left/right you can see it works fine, but if you move right and then up, you can see that it moves diagonally, and changes the roll if you look directly right.
I feel like I’m missing something really stupid here. Any ideas?