Motion matching
Chooses the next animation pose by searching a mocap database for the clip frame whose pose, velocity and predicted trajectory best match the current state and desired motion.
In the family Simulation & animation, character animation
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | Official add-on | Enable the Pose Search plugin; Animation Blueprint > Motion Matching node with a Pose Search Database docs |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Offline, an animation database is built from mocap: every frame gets a feature vector (joint positions and velocities, root velocity, future trajectory samples). At runtime a query vector is built from the character's current pose and the controller's desired trajectory. The nearest database frame under a weighted distance is found (brute force, KD-tree or accelerated search), and playback jumps to it if it is better than continuing the current clip by some margin. Inertialisation blends away the transition. Feature weights and search frequency are tuning knobs. Learned motion matching replaces the database search with neural networks to cut memory.
When to choose it
Reach for it when
- character locomotion looks stiff with state machines
- too much hand authoring of animation transitions
- want responsive natural movement from mocap data
- pick the best mocap pose for the desired path
Choose it for responsive, natural locomotion and action animation with little authoring of state machines. Prefer authored state machines or blend trees when you need guaranteed timing and exact poses, FABRIK inverse kinematics for adding foot/hand IK corrections on top, and physics-based control (MuJoCo articulated-body dynamics with convex contacts) when the character must react to forces.
Field marks
- Missing transitions in the data show up as foot sliding or 'teleporting' poses
- Large databases need memory and careful curation
- Feature weights are fiddly; poor tuning gives twitchy switching
- Data-driven: cannot produce motion absent from the mocap
Crosses
- A motion-matching database without mocap: Fill a motion-matching database with physically simulated locomotion covering the turns, slopes, pushes and stumbles that mocap sessions miss. The runtime stays a cheap nearest-neighbour search with no physics on the character.
- FABRIK inverse kinematics: Motion matching outputs the base pose; IK adjusts feet and hands to terrain and targets
Sources
- primarySimon Clavet. Motion Matching and The Road to Next-Gen Animation. GDC 2016.Verified via live page · 2026-11-29
- primaryDaniel Holden, Oussama Kanoun, Maksym Perepichka, Tiberiu Popa (2020). Learned motion matching. ACM Transactions on Graphics.Verified via crossref · 2026-11-29doi:10.1145/3386569.3392440