Can someone explain how I can use Quanternions to use the mouse to look around like a FPS?
问题 Yesterday I asked: How could simply calling Pitch and Yaw cause the camera to roll? Basically, I found out because of "Gimbal Lock" that if you pitch + yaw you will inevitably produce a rolling effect. For more information you can read that question. I'm trying to stop this from happening. When you look around in a normal FPS shooter you don't have your camera rolling all over the place! Here is my current passive mouse func: int windowWidth = 640; int windowHeight = 480; int oldMouseX = -1;