In this lesson, you will learn how to replace traditional crossfading with Inertialization to achieve high-fidelity, physics-based blending between disparate animation segments without complex state machine logic.
The Problem with Traditional Crossfading
When you transition between two animations using traditional crossfading, the engine essentially calculates a linear blend between two poses over a set time. If the animations aren't perfectly matched, you often get "floating" feet, jitter, or a muddy look where the character seems to lose their momentum as they slide between poses.
Understanding Inertialization
Inertialization works differently: instead of blending between two poses, it takes the velocity of the character's bones at the moment of the transition and uses a high-performance spring-damper system to "decay" that movement into the new animation. It treats the transition as a physics problem, ensuring the character’s momentum is preserved naturally.
This means you no longer need to manage complex transition rules in your State Machine. You simply tell the engine to snap to the new state, and the Inertialization system handles the visual smoothing automatically.
Implementation Setup
To use this, you must add an Inertialization node to your Animation Blueprint's main output flow.
- In your
AnimGraph, drag the output of your state machine (or Motion Matching node) into an Inertialization node. - When you want to trigger a transition, use the
Play MontageorJump to Statecommand. - Call the
Request Inertializationnode immediately before the switch.
// In your AnimGraph logic:
// 1. Request Inertialization on the node
// 2. Transition immediately to the new pose
RequestInertialization(TransitionDuration);
Because the transition is driven by the physics-based decay of the previous pose's velocities, the movement looks organic—even if the animations are vastly different. It essentially "blends" the energy of the movement rather than just the pixels of the pose. This is the secret sauce behind the smooth, high-fidelity movement found in modern character systems.
Key Takeaway: Inertialization replaces linear crossfading with a physics-based velocity decay, allowing for perfectly smooth, momentum-preserving transitions that remove the need for manual blending logic in your state machines.