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

Fix for 360 rotations at extreme values #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasoryeh
Copy link

Fixes the "360" move when a camera calculates the transition from an extremely low value to a high one (e.g. yaw=20 -> yaw=340).

Essentially just checks if the yaw destination rotation is >180 degrees, and if so, normalizes the usual yaw angle range (0,360) to a range in (-180,180) so that transitions between 360->0 don't go the other (long) way around, and rather goes through 0 smoothly. This does mean that points that change the yaw >180 degrees will now need an additional point somewhere in between.

Signed-off-by: Jason Ho <git@hogt.me>
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

Successfully merging this pull request may close these issues.

2 participants