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

Implementing Root Motion for Precise Movement

Enable root motion on montages to ensure character displacement is driven directly by the animation, preventing foot sliding during interactions.

In this lesson, you will learn how to enable Root Motion in your Animation Montages to ensure your character’s physical movement perfectly matches their animated footsteps, eliminating unnatural sliding.

Why Foot Sliding Happens

When you play an animation—like a "Lunge" or "Vault"—the character’s 3D mesh moves in space, but the capsule component (the object that handles collisions) often stays frozen at the origin. If the animation moves the character forward but the collision capsule doesn't update, the engine "snaps" the character back to the capsule, creating that ugly "ice-skating" effect. Root Motion solves this by telling the engine: "Let the animation dictate where the capsule moves."

Enabling Root Motion

To force the capsule to follow the animation, follow these steps:

  1. Open your Animation Sequence: Locate the asset used in your Montage.
  2. Check the Root Motion settings: In the Details panel, find the Root Motion section and enable Enable Root Motion.
  3. Configure the Root Bone: Ensure your rig has a designated root bone. You may need to set "Root Motion Root Lock" to Ref Pose to ensure the movement is applied correctly.
  4. Update the Montage: Open your Animation Montage, go to the Asset Details panel, and check Enable Root Motion.

Once enabled, you must tell the character how to process that data. In your Character Blueprint, find the Character Movement Component. Under the Root Motion category, set Root Motion Mode to Root Motion from Everything (or From Montages Only if you want to be more selective).

Why It Matters for Interactions

When your character interacts with a physical object—like leaning into a door to open it or vaulting over a chest—you need the collision to be exactly where the feet are. Without Root Motion, your character might clip through the mesh or stop short. By enabling this, the physics capsule moves in lockstep with the animation frame-by-frame, ensuring that if your character reaches a specific coordinate, the game's collision volume is physically located there, too.

Key Takeaway: Enabling Root Motion synchronizes the capsule component with your animation's translation, forcing the character's collision to move exactly as the skeleton does, which stops foot sliding and ensures precise interaction with the world.