Foot sliding and root-motion drift are the two most obvious giveaways of unpolished AI motion capture—whether the clip came from a text-to-motion generator like HY-Motion 1.0, a video mocap app like Rokoko or Plask, or even a raw inertial mocap suit. The good news is that both problems are deterministic geometry issues you can eliminate in 8 to 15 minutes per clip using IK foot pinning in Blender 4.x, Foot IK Locking in Unreal Engine 5, or Mecanim Root Transform baking in Unity.
This 2026 cleanup manual explains why sliding happens mathematically, how to decide between Root Motion and In-Place locomotion before touching a single curve, and the exact step-by-step pass for Blender, UE5, Unity, and Godot 4. Use the Rig Checker tab in the interactive workbench above to inspect engine-specific root settings alongside this guide.
Why AI Motion Clips Skate (And Why Retargeting Makes It Worse)
Every humanoid skeleton is an open forward-kinematic (FK) tree rooted at the pelvis (hips). The world position of a character's ankle is the sum of pelvis translation plus hip rotation, thigh length, knee rotation, and shin length. Foot sliding creeps in from three independent sources:
- Generative velocity mismatch: Motion diffusion models output smooth frame-to-frame joint curves rather than rigid Coulomb friction constraints. During weight shifts, the pelvis moves 3 cm while the supporting ankle moves 2 cm backward, creating visible ice-skating.
- Proportional retargeting error: Suppose the source HY-Motion 1.0 skeleton has 88 cm legs and travels 1.20 meters per stride, while your stylized hero has 68 cm legs. If you copy raw pelvis translation without leg-ratio scaling, your shorter character slides 22% farther than its feet can physically reach.
- Gameplay speed mismatch: In-place walk cycles play at a fixed animation speed (e.g.
1.6 m/s). If your player controller moves at2.4 m/swithout scalingAnimator.speedor switching to Root Motion, feet immediately skate on the ground.
Root Motion vs In-Place: Choose the Right Strategy Per Clip
Before editing curves, classify every animation in your project into one of two buckets:
| Clip Category | Recommended Mode | Pelvis XZ Behavior | Why It Works Best |
|---|---|---|---|
| Walk / Jog / Sprint Loops | In-Place | Stripped or locked to origin (X=0, Z=0) | Player joystick responds instantaneously with zero input lag inside Blend Trees. |
| Strafe & Aim Locomotion | In-Place | Locked to origin | Keeps capsule aligned with camera aim vector during 8-way blending. |
| Melee Lunges & Sword Combos | Root Motion | Extracted onto dedicated ground Root bone | Attacks carry exact physical step distance so weapon hitboxes never disconnect from feet. |
| Parkour Vaults, Ledge Climbs & Dodge Rolls | Root Motion | Extracted onto Root bone (XYZ) | Guarantees character clears obstacles cleanly without sliding off geometry. |
| Alert Idles & Emotes | In-Place (Y baked) | Grounded at origin | Prevents subtle lateral drift over 60 seconds of looping idle time. |
Fix 1: The 10-Minute Blender 4.x IK Foot-Pinning Pass
If you want permanent, engine-agnostic clean FBX or GLB files, fixing foot contacts once in Blender 4.x before exporting is the cleanest solution.
Step 1: Import and Normalize to 30 FPS
Import your downloaded HY-Motion 1.0 FBX draft (Hunyuan Motion Studio) into Blender with Automatic Bone Orientation enabled and confirm your scene timeline matches 30 FPS. Inspect the clip from a low side orthographic camera (Numpad 3) so ground plane Z = 0 cuts right under the soles of the shoes.
Step 2: Bake FK Motion onto an IK-Capable Control Rig
Retarget the raw FK animation onto a control rig that supports IK Legs (Blender's built-in Rigify, Auto-Rig Pro, or a simple 2-bone IK leg constraint). Once baked to IK foot controllers (foot_ik.L and foot_ik.R), the feet are driven in world space rather than inheriting pelvis jitter!
Step 3: Lock Stance Windows in the Graph Editor
Scrub the timeline to identify each planted stance interval (from heel-strike frame F_start to heel-lift frame F_end):
- Select
foot_ik.Land open the Graph Editor. - Isolate
X Location,Y Location, andZ Location. - Select all keyframes strictly inside
[F_start, F_end]. - Copy the exact
X,Y, andZ = 0.0(floor contact height) values from the solid plant frame (typicallyF_start + 2) and flatten the selected interval (S Y 0in Graph Editor, then snapZto floor). - Leave 3–4 transition frames right before
F_startand afterF_endsmoothed with Auto Clamped Bezier handles so the ankle does not pop into position. - Repeat for
foot_ik.R.
Step 4: Extract Clean Ground-Level Root Motion
Most game engines want horizontal movement stored on a ground-level Root bone (Z = 0) while Hips/Pelvis only stores vertical bounce and local lean:
- Add a parent
Rootbone at(0, 0, 0)aboveHips. - Copy the
XandYlocation curves fromHipsontoRoot(keepingRoot Z = 0unless climbing/vaulting vertically). - Zero out the corresponding
XandYworld translation onHips(leaving subtle hip sway if desired) so forward travel is never double-applied. - Bake final keyframes onto deform bones (
Pose → Animation → Bake Actionwith Visual Keying and Clear Constraints checked) and export FBX (for UE5/Unity) or GLB (for Godot 4).
Fix 2: Unreal Engine 5 IK Retargeter Foot Locking & Root Motion
Unreal Engine 5 lets you eliminate retarget-induced foot sliding non-destructively inside the IK Retargeter:
- Verify Globally Scaled Pelvis: In the IK Retargeter details panel, set the Pelvis chain translation mode to Globally Scaled. This automatically scales stride distance by the ratio of target leg length to source leg length—immediately removing proportional skating!
- Add IK Foot Goals: Ensure your Target IK Rig (
IK_Mannequin) has Full-Body IK goals onfoot_landfoot_r. - Enable Stride Warping / Foot IK Pinning: Turn on the Retargeter's IK goal blending (
Blend to Source = 1.0during stance) and adjust FK/IK alpha so planted feet resist micro-drift. - Control Root Motion in AnimSequence: Open the exported
AnimSequenceasset:- Check EnableRootMotion for lunges, dodges, and vaults.
- Check Force Root Lock if you need an in-place locomotion clip for a 1D/2D Blend Space.
- Runtime Polish: Add a lightweight Foot Placement or Stride Warping node inside your Animation Blueprint so the character adapts dynamically to ramps, stairs, and gameplay speed variations.
Fix 3: Unity Humanoid Mecanim Root Transform & Foot IK
Unity's Humanoid pipeline fixes the majority of vertical float and subtle skating straight inside the Import Inspector:
| Inspector Field | Setting for Combat Root Motion | Setting for In-Place Locomotion |
|---|---|---|
| Root Transform Rotation | Bake Into Pose = Off | Bake Into Pose = On (Original / Body Orientation) |
| Root Transform Position (Y) | Bake Into Pose = On · Based Upon = Feet | Bake Into Pose = On · Based Upon = Feet |
| Root Transform Position (XZ) | Bake Into Pose = Off · Based Upon = Center of Mass | Bake Into Pose = On · Based Upon = Center of Mass |
| Animator State → Foot IK | Checked | Checked |
If your character still slides slightly on an in-place run loop, check the Average Velocity shown at the bottom of Unity's Animation preview window (for example, 3.85 m/s) and match your CharacterController movement speed—or set the Blend Tree's Compute Thresholds → Velocity Z so Unity scales playback speed automatically to match real world displacement.
Fix 4: Godot 4 Skeleton3D & AnimationTree Root Extraction
For Godot 4 workflows using GLB exports from Blender:
- Open your
.glbAdvanced Import settings and assignSkeletonProfileHumanoidunder Retarget → Bone Map so Godot normalizes bone rests and hip height ratio cleanly. - In
AnimationTree, setroot_motion_trackto yourSkeleton3D:Root(orHips) bone, then readanimation_tree.get_root_motion_position()inside_physics_process()and apply it toCharacterBody3D.velocity. - Always verify your clip's raw bone hierarchy and timing first using our free Motion Retargeting Calculator and 3D GLB Viewer.
Quick Diagnostic Checklist Before Closing a Cleanup Pass
- Floor plane check: Do both heels kiss
Y = 0(Unity/Godot) orZ = 0(Blender/UE5) cleanly during mid-stance without clipping ankles? - Silhouette check: Does the hip height drop naturally during deceleration and weight acceptance?
- Loop seam check: For cyclical walks or idles, do the first and last frames match closely within 3–5 blend frames?
- Velocity sync check: Does in-engine capsule speed match the clip's natural stride distance?
Need fresh locomotion or combat blocking passes to test this pipeline? Start with a 60-credit Fast draft in Hunyuan Motion Studio (failed jobs auto-refund) or review Pricing.
FAQ
Why do AI motion capture and text-to-motion clips suffer from foot sliding?
AI motion models predict joint rotations and root pelvis velocity statistically rather than solving hard physical floor friction. Even tiny 1–2 degree hip or knee errors accumulate down the leg chain into visible 4–10 cm ankle skate—and retargeting onto a character with different leg proportions amplifies the drift.
What is the fastest way to fix foot sliding in Blender?
Convert the target rig's legs to IK (such as Rigify or Auto-Rig Pro), locate exact heel-strike and toe-off frames in the Graph Editor, flatten the Foot IK target's X, Y, and Z curves during planted stance windows, and blend smoothly across 3–4 lift frames.
How do I stop foot sliding in Unreal Engine 5 IK Retargeter?
Add Left and Right Foot IK Goals to your Target IK Rig, enable Foot Locking / IK Pinning inside the IK Retargeter op stack with a 0.02–0.04m blend window, and confirm Pelvis translation uses Globally Scaled mode.
Should my AI animation use Root Motion or In-Place locomotion?
Use Root Motion for non-uniform combat lunges, dodges, parkour vaults, and cutscene steps where velocity varies sharply. Use In-Place animations (with XZ root translation baked out) for joystick-driven walk, jog, and sprint Blend Trees.
How do I prevent a character from sinking through or floating above the floor in Unity?
On the FBX Animation tab in Unity, enable Root Transform Position (Y) → Bake Into Pose → Based Upon: Feet, then enable Foot IK on the Animator Controller state.