Never really encountered it, but I know it’s one of the reasons we use Rodrigues Rotation Formula instead of Euler angles. Also related to Coordinate Systems, Coordinate Frame, and Understanding rotational frames in 3D.
Euler angles present a failure: the so-called Gimbal Lock
- the loss of one degree of freedom in a three-dimensional, three-gimbal mechanism.
- occurs when the axes of two of the three gimbals are driven into a parallel configuration, “locking” the system into rotation in a degenerate two-dimensional space.
- no actual locking happens, the word ‘lock’ is a bit misleading.
Resource: - GuerrillaCC on yt
4D Space: Quaternions operate in 4D space and encode rotation as a single operation, not as sequential rotations around individual axes. This intrinsic nature avoids the conditions that lead to gimbal lock.
GIMBAL LOCK, PROOF
- For , we have
- We know the trigonometric formula:
We can notice that only and appear as — they’re coupled together. This means:
- We’ve lost one degree of freedom
- Rotating and by opposite amounts produces the same result
- We cannot independently control rotation around the x and z axes
- The gimbal is “locked” - two rotation axes have become aligned