So, I came across a problem in my 3D game in Godot 4.4.1. I used the clamp method to limit my players camera rotation. However, in-game, when I would look up and turn, the camera would go off alignment and it would turn weirdly. Surprisingly, this was not your every day look-up on the browser fix (Had to figure this out myself).
I am using a Node3D as the placeholder for the camera, which is the node I am rotating and clamping, however, this should work for most other nodes.
1. Go to the node that contains your players camera.
2. Go to Transform, and under Transform, go to Rotation Order. Here is the problem.
By default, Godot sets it to YXZ, and that is the culprit. To fix this, set it to the standard XYZ, and its fixed! (At least for me it fixed it)
If you found this helpful, leave a like! 馃憤
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.