Hello, I am working on a three js game and the camera rotation is a lil’ bit buggy like the camera looks like a VR game but I need it to be like a normal first person camera rotation system.
Here is the code i have for my first person game
That’s the code of my first person camera. What I think is that the camera is rotating along its own axis or something like the x and y rotations are interfering together you feel me? But that’s what I think.
You probably have to change the euler order of your camera rotation.
The default is "XYZ". Setting this to "YXZ" (the “yaw-pitch-roll” order) would work fine.