godot-nim icon indicating copy to clipboard operation
godot-nim copied to clipboard

Basis getEuler behavior

Open ghost opened this issue 3 years ago • 0 comments

Hello!

I'm having some problems with the get_euler function of the core basis type. The Y axis of the result goes from 0.0 to -PI/2 then back to 0.0 then to PI/2 (if reading it counterclockwise). So it kind of goes only half the circle. Is this an expected behavior?

Here's an example of this: Example I'm using transform's looking_at function to get the desired rotation of the character. But getting the yaw of the character with get_euler function results in this behavior. I haven't encountered this problem with GDScript.

Thanks.

ghost avatar Jul 21 '21 11:07 ghost