pragmagic / godot-nim

Nim bindings for Godot Engine
https://pragmagic.github.io/godot-nim/
Other
500 stars 26 forks source link

Basis getEuler behavior #107

Open ghost opened 3 years ago

ghost commented 3 years ago

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.