What are walk, run and idle cycles?
| Cycle | What one loop covers | What to watch |
|---|---|---|
| Walk | Two steps: each foot plants once | One foot is always on the ground, and the hips rise and fall once per step |
| Run | Two strides, with a moment where both feet are off the ground | The flight phase, and a heavier landing on each contact |
| Idle | A few seconds of breathing and small weight shifts while standing | Movement small enough not to distract, with no obvious repeat |
Games use cycles for anything a character does for an unknown length of time: walking, running, swimming, carrying, idling. One short cycle plays for as long as needed, and the engine blends between cycles as the character changes speed.
How do you make an animation loop seamlessly?
- 1Match the first and last frame. Copy the first key to the end so the pose is identical, then play or export up to the frame before it. Otherwise the same pose shows on two frames in a row and the loop hitches.
- 2Match the curves, not just the pose. A loop needs the same speed at the seam as well as the same position, so the tangents at the start and end have to agree. Blender’s Cycles F-Curve modifier (Channel ‣ Extrapolation Mode ‣ Make Cyclic) repeats a curve and sets automatic handles to run smoothly across the seam.
- 3Fit every part into the loop. A part on its own rhythm has to repeat a whole number of times per loop. A tail can swing once or twice in a two-step walk, but not one and a half times, or it jumps at the seam.
- 4Check it in the engine. Unity’s clip import settings show green, yellow or red match indicators for a clip’s start and end, and Loop Time and Loop Pose play it seamlessly.
Should a cycle be in place or use root motion?
A walk can stay on the spot or travel through the scene. Both are cycles; the difference is what happens to the root, the top bone that carries the whole character.
| In place | Root motion | |
|---|---|---|
| The root | Stays at the origin; the body walks on the spot, as on a treadmill | Travels forward with the character |
| What moves the character | Your game code, at a speed you set | The animation itself |
| The feet | Slide if the code’s speed doesn’t match the stride | Stay planted, because the travel is part of the motion |
| At the seam | Pose and position both match | The pose matches; the travel carries on from where it ended |
| Where you set it | In the clip itself: keyed or exported with no forward travel | Unity: Bake Into Pose off for Root Transform Position (XZ). Unreal: Enable Root Motion on the sequence |
Unity’s manual puts the looping rule well: for a walk, the start and end rotation and height should match, but not the forward position, or the character would never get anywhere. Unreal’s docs describe the classic mistake the other way round: a clip that travels without root motion pulls the mesh away from the character’s collision capsule, then snaps back when the cycle restarts.
What goes wrong with animation loops?
| Problem | What you see | The usual fix |
|---|---|---|
| A pop at the seam | A jump or hitch each time the loop restarts | Match the first and last pose and tangents, and don’t play the duplicate frame |
| Foot slide | Planted feet skate over the ground | Match the travel speed to the stride, or use root motion, and lock foot contacts with IK |
| Drift | The character creeps sideways or turns a little more each loop | Match the root’s rotation and sideways position at the start and end |
| An obvious repeat | An idle that visibly does the same thing every few seconds | Lengthen the loop, or play a few variations at random |
| Uneven steps | One step longer or heavier than the other | Mirror the first step’s poses onto the second |
Foot sliding is the one players notice first. Our post on why generated animation slides goes into where it comes from and how foot locking fixes it.
Frequently asked questions
Sources (checked 19 November 2026)
- Unity Manual, Loop optimization on animation clips: docs.unity3d.com
- Unity Manual, Animation clip import settings: docs.unity3d.com
- Blender Manual, F-Curve modifiers (Cycles): docs.blender.org
- Unreal Engine documentation, Root Motion: dev.epicgames.com