Hi! As the title says, if I try to use go.get_world_rotation()
on an object with a scale factor different from 1, the value of the quaternion is incorrect.
Is this a bug or a limitation of having to decompose the final model matrix of the object? Is there any way to get the world rotation on a scaled object?
EDIT: To be more precise, I’m working in pure 2D with uniform scales and my goal is to get to sin(alpha)
and cos(alpha)
where alpha
is the global rotation-around-Z angle of a sprite. I need this to do manual picking (because when working with game objects, you don’t have gui.pick_node()
).