Game dev
Saved & recent

Motion matching

Related terms: pose search, animation database, trajectory, animation state machine

Choosing animation by searching a library of recorded poses for the best fit. The query can include the current pose, limb velocities, and the direction the character is expected to travel. A suitable moment in a clip becomes the next motion to play, with transitions smoothed to avoid a visible snap.

This reduces the need to hand-author a transition for every possible turn or stop. The library still needs good examples of the movements the game requires. Epic reports that Fortnite Chapter 5 used its motion matching system for player characters and NPCs.

Game example and further reading
Epic Games
Further reading
Simon Clavet: Motion Matching and The Road to Next-Gen Animation
right turn straight left turn current pose desired path best match path cost pose cost
The query is the desired path over the next second, sampled at three times, plus the current pose: foot positions and velocities. Every frame in the library is scored on both, and the lowest total plays next. Only the right turn at the same moment of the stride matches both. A real library holds far more frames.

View in the full Game dev collection