- Home /
Difference in rotation without gimbal lock
For a freeform rotation, say from a gyroscope, is it possible to find the difference in rotation before and after an Update() while avoiding gimbal lock?
Ina - this is exactly what quaternions are for.
check out the quat. manual page for all your options.
you can only multiply quaternions.. is it possible to find the change in angle between frame 1 and frame 2? if you have two different quaternions, one from frame1 and one from frame2, how do you find the difference in angle between them?
.Angle as zyzyzyzyx says !
indeed,
Documentation/ScriptReference/Quaternion.SetFromToRotation.html
will build you a quat, based on the previous and new heading (Vector3) of the item!
Your answer
![](https://koobas.hobune.stream/wayback/20220613083000im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Avoiding Gimbal Lock 1 Answer
Clarifying the ambiguities of rotation in Unity 1 Answer
Limit local rotation around x, y, and z axes? 0 Answers
Rotation of child object is different in play mode 0 Answers
Yaw Pitch Roll order? 0 Answers