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

C#: Update Basis Euler angle code to match core #66387

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

aaronfranke
Copy link
Member

This PR brings the changes in #54084 to C#. It also solves #66268. I did some testing with these changes applied to 3.x using the test code in the OP and the output is correct.

YZX,
ZXY,
ZYX
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used anywhere outside Basis? If not, we may want to move it inside the Basis struct, like Vector3.Axis.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same values are used in Node3D already, but I don't think it's typed as the enum (just int). Also, the plan is to use it in Quaternion soon, see #66747 and https://github.com/aaronfranke/godot/tree/quat-euler-order

@akien-mga akien-mga merged commit 9c28941 into godotengine:master Oct 3, 2022
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the cs-basis-euler branch October 3, 2022 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basis' GetEuler function returns wrong angles under certain conditions
4 participants