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

VideoCommon: allow Free Look to be manipulated by a quaternion #9366

Merged
merged 3 commits into from Jan 28, 2021

Conversation

iwubcode
Copy link
Contributor

No description provided.

@@ -56,6 +56,13 @@ Quaternion Quaternion::RotateZ(float rad)
return Rotate(rad, Vec3(0, 0, 1));
}

Quaternion Quaternion::RotateXYZ(const Vec3& rads)
Copy link
Member

Choose a reason for hiding this comment

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

There should maybe be a comment that explains this produces a quaternion of simultaneous rotations about the 3 axes. e.g. processing gyroscope input.
I don't know if I like the name RotateXYZ, but I don't know what a better name is either. :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'm horrible at naming things :D . Please let me know if you think of something better!

Choose a reason for hiding this comment

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

Here are some suggestions "Rotate_all_axes" "3D_rotation" "Quaternion_rotation"

Copy link
Member

@leoetlino leoetlino left a comment

Choose a reason for hiding this comment

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

Changes look sane, but the savestate version needs to be updated.

@leoetlino leoetlino dismissed their stale review January 28, 2021 00:17

missed the last commit :|

@leoetlino leoetlino merged commit c386c5a into dolphin-emu:master Jan 28, 2021
10 checks passed
@iwubcode iwubcode deleted the freelook_camera_quaternion branch January 28, 2021 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants