Non-uniform scale breaks global_rotation

Godot Version

4.5

Question

As stated in the title, non-uniform scale on a node causes its global_rotation to snap to PI/2 or 1.57

This topic seems to have the same issue and no solution so far
Help would be appreciated

After testing a bit the issue only seems to happen when setting scale and rotation thru code
In the editor this issue doesn’t happen

I remember reading a caution a year or two ago about this. TBH, I just avoid doing it. However, if I were to try it, I’d look at moving the origin point of the object as well in 3D.

1 Like

Ok I fixed it by not using global_rotation, instead i just used the rotation property and it now works, that is interesting

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.