Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basis getEuler behavior #107

Open
ghost opened this issue Jul 21, 2021 · 0 comments
Open

Basis getEuler behavior #107

ghost opened this issue Jul 21, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants