First Person Camera Proper Mouse Input,
Members - Reputation: 102
Posted 08 January 2012 - 04:04 AM
One way to do this:
Record cursor position each frame
Reset cursor position to middle of window each frame
Scale that by some constant
Theoretically, this would produce constant camera speed, because the mouse would move more each frame at a lower frame rate, and move less at a higher frame rate. However, this doesn't work because at high frame rates, it is very possible that the cursor will move less than a pixel each frame, and you would get no movement.
How do you implement first person cameras?
If you use the mentioned method, how do you get around the flaws?
Crossbones+ - Reputation: 5897
Posted 08 January 2012 - 08:53 AM