Rigging & animation · Intermediate

Gimbal lock

When two rotation axes line up and an object loses a direction of spin

What is gimbal lock?

Gimbal lock is a rotation problem where two of an object’s three rotation axes line up, so turning either one does the same thing and one direction of spin is lost. It happens with Euler rotation, the familiar X, Y and Z angles, and can cause sudden flips in animation.

Think of it like this

Like the nested rings of a gyroscope: tip the middle ring a quarter turn and the inner and outer rings end up spinning around the same line.

Where it fits in a 3D project

  1. Create
  2. Surface
  3. Rig
  4. Animate
  5. Render
  6. Export

Animate: Making things move over time.

How gimbal lock works

  1. 01Euler rotation applies X, Y and Z turns one after another, in a set order.
  2. 02Each axis is nested inside the axis applied after it.
  3. 03Turning the middle axis 90 degrees lines up the other two.
  4. 04With two axes matched, one direction of rotation becomes unreachable.

Where gimbal lock is used

  • Flips, somersaults and tumbling props
  • Camera rigs tilting straight up or down
  • Shoulder and wrist bones with wide rotations

Beginner tip

Before animating a big rotation, pick a rotation order with the least-used axis in the middle. That keeps the main spin, like a turning wheel, clear of the lock.

Gimbal lock FAQ

How do you avoid gimbal lock?
Change the rotation order so the axis that moves least sits in the middle, keep that middle axis away from 90 degrees, or switch the object to quaternion rotation, which cannot gimbal lock.
Euler vs quaternion rotation: what is the difference?
Euler rotation stores three readable angles, easy to edit but prone to gimbal lock. Quaternions store rotation as four numbers that avoid the lock and blend smoothly, but are hard to read or adjust by hand.
Why does my rotation flip in animation?
Often because of gimbal lock, or because rotation values jump across 180 degrees between keys. Look for sudden spikes in the graph editor, run an Euler filter if your app has one, or change the rotation order.

Updated October 29, 2026 · Browse all 3D terms