` Hi yall! I am trying to make a 3D character controller, it went very well. I heard about bone attachment. So I used it to attach the camera it so the camera is synced with the player’s head.
After doing this, looking up and downusing mouse ‘X ROTATION’ started to glitch. After few rotations and walking a little bit it started to rotating instead of up and down it started rotating up and down with like 45 degress added to it around axis Y. You can see that on video.`
This did not happened when the camera parent 3D node was not attached to the bone.
This is called Gimbal Lock. It happens when you try to rotate something on the x and y axis using Euler coordinates. You can solve it by rotating a node in the y-axis, and the camera as a child of that node on the x-axis. Here’s a good tutorial on it.
I also found this thread which I found the last response interesting.
@pennyloafers I noticed that you commented on the Godot doc I linked above. Do you know any good tutorials on creating a first person controller using quaternion transforms?