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:
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.
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: 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.