Locomotion Animations: The Foundation of Every Character System
What you'll learn: This guide covers everything you need for character locomotion. You will learn what a production-ready walk cycle animation requires. You will see how run animation game integration works in UE5 and Unity. You will understand root motion vs. in-place locomotion. You will learn how to set up a locomotion blend space. You will see how blend tree animation works in Unity. You will know what quality indicators to check in a professional mocap pack. You will learn how many animations a complete locomotion set needs.
Locomotion animations include walk, jog, run, sprint, crouch-walk, strafe, and transitions. These are the most played animations in any game. Players spend more time watching their character move than doing anything else. The quality of these animations shapes the first impression of a game. Poorly executed locomotion is one of the most common criticisms in early access reviews.
Getting locomotion right requires more than a good walk cycle. You need a complete set of directional variants. You need properly configured blend spaces. You need correct root motion settings. You need clean loop points that do not create visible stepping artifacts. This guide covers the technical requirements for a complete locomotion set, how to set up locomotion in UE5 and Unity, and what to look for in a professional mocap pack.
What a Complete Locomotion Animation Set Includes
A production-ready character locomotion set covers:
Speed states:
- Idle (standing, with idle breathing variants)
- Walk (typically 2–4 km/h)
- Jog (6–8 km/h)
- Run (10–12 km/h)
- Sprint (15+ km/h, typically forward-only)
Directional coverage:
- Forward
- Backward
- Left/right strafe
- Diagonal variants (45° angles)
Combat/stance variants:
- Standing idle + walk/run in combat stance
- Crouch idle + crouch-walk
- Prone idle + crawl (if needed)
Starts and stops:
- Walk start (forward/left/right/back)
- Walk stop (with appropriate momentum)
- Run start
- Run stop (with plant-and-stop deceleration)
Turn-in-place:
- 90° and 180° left and right turns (used when the character turns without moving)
A thorough locomotion set for a third-person action game typically includes 40–80 animations covering these states and variants. This is why locomotion packs from professional mocap libraries are so valuable — building this set in-house from scratch through capture, cleanup, and retargeting is a significant pipeline investment.
Root Motion vs. In-Place Locomotion
One of the first decisions in a locomotion system is whether to use root motion or in-place animation. Understanding the difference is essential before importing any locomotion animations.
Root Motion Locomotion
The root bone (the topmost or pelvis-level bone in the skeleton hierarchy) physically translates and rotates in the animation data. The character's position in the world is driven by the animation itself — the engine moves the character by reading the root bone's movement each frame.
Advantages:
- Natural, physically grounded movement — the character's speed matches the visible stride length
- Foot planting is accurate — the visual stride matches the actual displacement
- Works intuitively for gameplay where animation speed should define movement speed
Disadvantages:
- Speed is locked to the animation — variable speed requires blending between multiple speed-tier animations
- More complex to integrate with character controller physics (especially for collisions and slopes)
In-Place (In-Root) Locomotion
The root bone stays at the world origin. The character's legs cycle through the stride visually, but the root doesn't translate. The character controller (code) moves the character independently of the animation.
Advantages:
- Single walk or run cycle works at any speed (the character controller stretches or compresses the apparent stride)
- Easier to integrate with physics-based character controllers
- Simpler blend tree setup
Disadvantages:
- Foot sliding is common if character velocity doesn't match the animation's apparent stride speed
- Requires careful speed parameter tuning to minimize the sliding artifact
Which to choose: UE5's character movement component works well with either approach but has excellent built-in support for root motion. Unity's Animator Controller supports both modes — set Apply Root Motion on the Animator component to switch.
Most professional locomotion packs ship both versions, or ship root motion that can be baked to in-place using engine tools.
Setting Up Locomotion in Unreal Engine 5
UE5's Animation Blueprint is the engine's state machine and blending layer for locomotion. The standard approach uses a Blend Space for smooth speed and direction blending.
Creating a Locomotion Blend Space
A Blend Space takes a 2D or 1D parameter space and blends between animation clips positioned at points in that space. For locomotion, the typical setup is:
- 1D Blend Space: X axis = Speed (0 to maximum run speed). Animations: Idle at 0, Walk at walk speed, Run at run speed.
- 2D Blend Space: X axis = Speed, Y axis = Direction (-180° to 180°). Animations placed at compass points (Forward Walk, Back Walk, Left Strafe Walk, etc.).
Creating the Blend Space:
1. In Content Browser, right-click → Animation → Blend Space 1D (or Blend Space for 2D)
2. Assign the Skeleton
3. Set the axis range (e.g., Speed: 0 to 600)
4. Drag Animation Sequences into the timeline at their appropriate speed positions
5. Preview the result — moving the scrubber shows the blended output
Connecting Blend Space to the Animation Blueprint
- In the AnimBP, create a variable
Speed(float) driven by the character's velocity magnitude in the Event Graph - In the AnimGraph, add a Blend Space Player node with your locomotion blend space
- Connect the Speed variable to the Blend Space Player's input
- Add a Locomotion state in the State Machine and connect the blend space output to the output pose
Turn-in-Place Setup
Add a separate State in the locomotion State Machine for turning. Trigger it when Speed < threshold AND rotation rate > threshold. The turn animation plays while the character stays stationary, then transitions back to idle when rotation is complete.
Setting Up Locomotion in Unity
Unity's Animator Controller handles locomotion through Blend Trees — a more visual version of UE5's Blend Space.
Creating a Locomotion Blend Tree
- In the Animator Controller, create a new Blend Tree state
- Double-click to open the Blend Tree
- Set Blend Type to 2D Freeform Directional (for directional locomotion) or 1D for speed-only
- Add Motion fields: drag in Idle, Walk Forward, Run Forward, Strafe Left, Strafe Right, Walk Back
- Set the Position values for each motion — Forward Walk might be (0, 1), Run Forward (0, 2), Strafe Left (-1, 0.5), etc.
Parameters for Unity Locomotion
Create a float parameter Speed and a float parameter Direction (-1 to 1, left to right) or use VelocityX and VelocityZ to drive a 2D blend tree with the character's world-space velocity.
For root motion in Unity: check Apply Root Motion on the Animator component and use Bake Into Pose in the animation import settings to control whether root translation/rotation is applied to the character or discarded.
What Makes a Good Locomotion Animation Set
When evaluating locomotion animations from any source, check these quality indicators:
Loop quality: Frame 0 and frame N should have identical foot, pelvis, and spine positions. A loop seam creates a visible "step" artifact that breaks immersion. Test by playing the animation at low speed and watching for the snap.
Foot contact: During ground contact, the foot should not move laterally or vertically. Foot sliding during planted phases is a primary artifact of poorly cleaned mocap.
Weight distribution: A walk cycle should have perceptible upper body countermotion — shoulders rotating opposite to the pelvis, natural arm swing. Flat, rigid upper bodies make characters look mechanical even when the feet are correct.
Transition readiness: Does the animation have clean entry/exit frames that support smooth blending into starts, stops, and turns? Abrupt pose changes at the beginning and end of clips create pop artifacts in the blend tree.
Appropriate speed for file label: A "run" animation that plays at 400 units/second should actually look like running at that speed. Mismatches between labeling and actual speed require speed-warping adjustments in the blend space.
Walk Cycle Animation: What Separates Good from Bad
The walk cycle animation is the single most scrutinized animation in any character locomotion system. Players see it constantly. Small errors become subconscious irritants within minutes of gameplay. Here is what professional walk cycle animation requires.
Biomechanical accuracy. A natural walk cycle has a clear heel-strike on ground contact. The body lowers slightly during mid-stance loading. The toe pushes off at the end of stance. The recovering leg swings forward to clear the ground. The pelvis rotates opposite to the leading leg. The shoulders counterrotate opposite to the pelvis. Arms swing in opposition to the legs on the same side. When any of these relationships are wrong, the walk reads as mechanical.
The 8-count cycle structure. A walk cycle animation for games is typically 8-count. That means 8 frames, 16 frames, or 32 frames at game frame rates. The left foot strikes on count 1. The right foot strikes on count 5. Cycle length must match the animation's apparent speed. A fast walk cycle at 2 km/h visual stride will slide visibly at 5 km/h in the game world.
Loop point integrity. The first frame and the last frame must match exactly. Pelvis position, foot position, and spine angle must be identical. Any difference creates a visible snap at the loop point. A professional walk cycle has zero difference at the loop seam.
Upper body involvement. Many low-quality walk cycle animations have correct legs but a stationary upper body. The torso should lean slightly forward at moderate pace. Shoulders should counterrotate 2–5 degrees per step. Arm swing amplitude should match the walk speed. At fast walk, arm swing is wider. At slow walk, it is more restrained.
Run Animation Game Integration: Speed, Root Motion, and Blend Space Positioning
Run animation game integration requires matching the animation's apparent stride to the character's actual movement speed. A run animation that looks like 8 m/s but plays at 5 m/s creates foot sliding. Getting this right requires understanding how the locomotion blend space positions your run animation relative to your character's max speed.
Setting run animation speed in the locomotion blend space. Measure the actual ground coverage per cycle in your run animation. In UE5, enable root motion and check the Root Motion properties in the Animation Sequence details panel. It shows distance per cycle. Set the locomotion blend space X axis value for the run animation to match the character controller's maximum run speed in units per second. If the character runs at 600 units/second and the animation covers 600 units per cycle at 30fps, they match.
Handling multiple run speed tiers. Many games have jog and sprint as separate speed tiers. Place each at its correct speed position in the locomotion blend space. Jog goes at 300–400 units/second. Run goes at 500–600. Sprint goes at 700+. The blend space interpolates between them as speed changes. Use at least three clean speed tiers rather than two. This reduces interpolation artifacts in the mid-range.
Sprint vs. run animation differences. A sprint animation should have a more aggressive forward lean. Ground contact time is shorter. Hip extension is more extreme. Arm drive is faster. Using a run animation at sprint speed, even with speed warping, produces a mechanical result. Professional locomotion packs include separate sprint animations for this reason.
Professional Locomotion Animation Packs
Building a complete locomotion set from custom mocap capture — including all directional variants, starts, stops, turns, and stance variants — is a significant investment. At 2–4 hours cleanup per animation × 60 animations in a full set, that's 120–240 hours of technical animator time before any retargeting or engine integration.
Professional animation packs from studios that specialize in game animation handle all of this in advance. MoCap Online's locomotion packs include:
- Standard character locomotion (walk/jog/run in all directions, starts, stops, turns, idles)
- Combat stance locomotion (with weapon-appropriate upper body positions)
- Crouch locomotion
- Multiple character archetypes (male/female variations, age-appropriate movement styles)
All clips are captured in a professional optical studio, cleaned to production standard, and delivered in FBX, BIP, Unreal Engine, Unity, and Blender formats. Explore the full range at the motion capture animation library.
FAQ: Locomotion Animations
How many animations do I need for a complete locomotion system?
A minimal loop-only set (no starts/stops): 5–8 animations (idle, walk forward, walk back, walk strafe L/R, run forward). A production-complete set with starts, stops, turns, and variants: 40–80 animations. A full AAA locomotion set covering multiple stances and speed tiers: 80–150+.
Should I use root motion or in-place animations for my game?
For third-person games where animation quality matters: root motion gives more natural results. For top-down, mobile, or physics-heavy games where the character controller drives movement: in-place is simpler to integrate. Many modern games use a hybrid — root motion for stops and turns (where accuracy matters most), in-place for continuous movement where speed warping hides foot sliding.
Why does my walk cycle have a visible glitch at the loop point?
The first and last frame of the clip don't match. In UE5, enable Loop in the Animation Sequence settings and manually adjust the last frame keyframe to match the first. In Unity, the same fix applies in the animation import Loop Pose settings.
How do I set up smooth speed transitions between walk and run?
Use a Blend Space (UE5) or Blend Tree (Unity) with both animations placed at their respective speed values. The engine automatically blends between them as the speed parameter crosses the threshold. Avoid sharp transitions — smooth parameter movement produces smooth blending.
How does a locomotion blend space work in Unreal Engine 5?
A locomotion blend space in UE5 is a 1D or 2D grid. Animation clips sit at specific parameter values. For a 1D locomotion blend space, the X axis represents speed. Idle sits at 0. Walk sits at 2 m/s. Jog sits at 5 m/s. Run sits at 8 m/s. The engine interpolates between adjacent clips as the Speed float parameter changes at runtime. For a 2D locomotion blend space, the second axis is direction. At runtime, velocity direction drives the Y axis and speed drives the X axis. This produces smooth character locomotion that handles diagonal movement by blending between four adjacent clips.
What is blend tree animation and how does it differ from UE5's Blend Space?
Blend tree animation in Unity's Animator Controller blends between animation clips based on float parameters. UE5's Blend Space does the same thing but uses a grid layout instead of a tree structure. Unity's blend tree animation uses nodes that can be either a single clip or another nested blend tree. UE5's Blend Space positions clips at specific grid coordinates. Both produce smooth character locomotion. They blend between walk, jog, run, and strafe clips as speed and direction parameters change. Unity's blend tree animation handles complex conditional blending better. UE5's Blend Space is easier to visualize during editing.
What are the most important walk cycle animation quality checks for game use?
The five most important walk cycle animation quality checks are loop integrity, foot contact accuracy, pelvis countermotion, upper body counterrotation, and speed-appropriate stride length. Loop integrity means the first and last frame match exactly. Foot contact accuracy means no lateral sliding during ground contact. Pelvis countermotion means the pelvis rotates correctly as weight shifts. Upper body counterrotation means shoulders oppose pelvis rotation and arms swing naturally. Speed-appropriate stride length means the visual stride matches the animation's playback speed at the target locomotion blend space position. Loop integrity and foot contact are the most immediately visible failures. Players notice these within the first few minutes of gameplay.
Professional Locomotion, Ready to Use
Every game needs it. Not every team can spend 200 hours building it from scratch. MoCap Online's locomotion packs provide production-ready walk, jog, run, sprint, crouch, and strafe animations — captured optically, cleaned manually, and formatted for UE5, Unity, Blender, and more.
Download the free animation pack to test your blend tree setup with real mocap data before committing to a full pack, and browse the motion capture animation library to find the locomotion set that matches your character and game style.
