How can I rotate an element based on Magnetometer
degrees
#2629
Unanswered
LaurenceM10NS
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example, what I want to do is rotate an element based on Magnetometer values got from the device. The problem that I have is, for example, if the
Magnetometer
value is 358 degrees and then I moved to 13 degrees, the animation will rotate reversing.See this image, please. What I want to do is rotate using the green line instead of the red line (reversing).
Beta Was this translation helpful? Give feedback.
All reactions