-
Notifications
You must be signed in to change notification settings - Fork 70
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
Gimbal lock #2
Comments
If it wasn't for Gimbal Lock I would've released it a week ago. It's really tricky to wrap my non-math brain around. Any ideas on fixing it are more than welcome. All we need is to map the relative beta and gamma rotation to the x and y-axis. |
The code here can compute the quaternion from the alpha, beta, gamma values: |
I believe I tried this earlier but will give it another go. |
You can also prevent the angles from going to exactly zero/max to prevent gimble lock. No one will notice if an angel never goes to less than 0.0001 degrees. |
Seems like gimbal lock is an issue when testing out on my phone.
https://en.wikipedia.org/wiki/Gimbal_lock
The text was updated successfully, but these errors were encountered: