How to fix weird camera rotation while moving camera with sdl, opengl in c++
问题 I have a camera object that I have put together from reading on the net that handles moving forward and backward, strafe left and right and even look around with the mouse. But when I move in any direction plus try to look around it jumps all over the place, but when I don't move and look around its fine. I'm hoping someone can help me work out why I can move and look around at the same time? main.h #include "SDL/SDL.h" #include "SDL/SDL_opengl.h" #include <cmath> #define CAMERASPEED 0.03f //