Course contentsShow
← Unreal Engine Game Development
Lesson 321 of 8805. Animation and Character RiggingFree lesson

Implementing Root Motion for Accurate Movement

Learners will configure animations to drive character movement directly from the root bone to prevent sliding during transitions.

In this lesson, you will learn how to use Root Motion to sync your character’s physical movement with their animation, ensuring they never "skate" across the ground.

The Problem: Animation Sliding

When you play a walking or jumping animation, the character model might move forward in the 3D software (like Blender or Maya), but the Capsule Component in Unreal Engine stays perfectly still. This creates a visual mismatch: the feet animate as if they are covering ground, but the character stays locked in place, leading to that "ice-skating" effect.

The Solution: Root Motion

Root Motion fixes this by telling Unreal Engine to move the character’s actual physical capsule based on the movement of the root bone within the animation. Instead of the code telling the character "move forward at 600 units," the animation file itself dictates the movement.

To implement this:

  1. Enable in Animation Asset: Open your Animation Sequence. In the Animation settings panel, check the box labeled Enable Root Motion.
  2. Root Motion Root Lock: Set the Root Motion Root Lock to Ref Pose or Anim First Frame to keep the root bone pinned correctly during the loop.
  3. Configure the Character Blueprint: Ensure your CharacterMovementComponent is set to handle this. By default, it will respect Root Motion if the animation is processed correctly.

If you are using a State Machine, you can verify that the root motion is working by checking the Show > Animation > Root Motion toggle in the viewport while playing the animation. You will see a green line indicating the path the root bone is taking.

Why it Matters

Using Root Motion ensures that high-precision animations—like a heavy melee attack or a vault over a ledge—always land exactly where the animator intended. Because the movement is authored in the animation, the physical capsule will follow the feet perfectly, preventing the character from clipping through walls or sliding during delicate transitions.

Key Takeaway: Root Motion overrides programmatic movement by forcing the character’s collision capsule to follow the translation of the root bone, creating a perfect lock between visual animation and physical displacement.