News for hackers. Stuff that matters.
Re:Rotations with quaternions by imadr on Tuesday June 01, 2021 @11:04AM (#27355453)
Thanks for the heads up, I'm going to rephrase the statement about gimbal lock and link you article.

And just to be 100% sure, is the approach I'm using the right one: storing a quaternion instead of 3 angles, multiplying, overwriting the rotation value?

Re:Rotations with quaternions by OmarShehata on Tuesday June 01, 2021 @11:49AM (#27356396)
Yes, exactly!

And the idea is, _that's_ how you avoid gimbal lock. It's that implementation of multiplying, and overwriting, which can be done with any system that describes and applies rotation, including Euler angles, rotation matrices, etc.

Re:Rotations with quaternions by greggman3 on Tuesday June 01, 2021 @01:57PM (#27358631)