Rotations with quaternions
This article incorrectly states that gimbal lock is a property of Euler angles, and that using quaternions prevents it.<p>This is a common misconception.<p>Euler angles can be used to rotate an object exactly the same way as quaternions do with no gimbal lock. Similarly, you can apply quaternions in such a way that gimbal lock will happen (if you wanted to represent a physical system of gimbals with quaternions, where that is a physical property).<p>I wrote a short article demonstrating and clarifying this, hope it helps: <a href="https://omar-shehata.medium.com/how-to-fix-gimbal-lock-in-n-dimensions-f2f7baec2b5e" rel="nofollow">https://omar-shehata.medium.com/how-to-fix-gimbal-lock-in-n-...</a>