Godot Version
4.5
Question
I am trying to make a simple 3D model editor, but I am running into a problem with rotation. when I rotate an object 90 degrees in the x axis, 90 in the y axis then -90 in the x again it doesn’t rotate as I want it to. I want it to rotate how it does in the editor:
but instead when I move it the second time in the x axis the object just goes back to being vertical. I have tried a couple different ways to fix this, mainly quaternions (which I don’t really understand), but I couldn’t get anything to work. What is the best way to solve this?