# Dopasowywanie ruchu z bazy nagrań (motion matching)

EN: **Motion matching** · id `motionmatching` · aliases: motion matching, dopasowywanie ruchu, wyszukiwanie ruchu

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [AI w grach](https://aiatlasgraph.com/t/gameai.md) › [Animacja postaci sterowana danymi](https://aiatlasgraph.com/t/charanimation.md) › Dopasowywanie ruchu z bazy nagrań (motion matching)

## Description

- PL: Kinematyczna metoda animacji, która co kilka klatek szuka w bazie nagrań najbliższego wektora cech pozy i trajektorii i przeskakuje do tego miejsca.
- EN: A kinematic animation method that every frame or few frames searches the recording database for the nearest pose-and-trajectory feature vector and jumps playback there.

## In one sentence

- PL: Gra co chwilę przeszukuje dużą bibliotekę nagranego ruchu i odtwarza fragment najlepiej pasujący do tego, co robi gracz.
- EN: The game keeps searching a big library of recorded movement and plays the snippet that best fits what the player is doing.

## Problem it solves

- PL: Klasyczne grafy animacji z ręcznie ustawionymi przejściami rozrastają się do setek połączeń, a ruch i tak wygląda sztywno.
- EN: Classic animation graphs with hand-set transitions grow to hundreds of links, and the motion still looks stiff.

## What it does

- PL: Działa jak DJ, który w każdej chwili wybiera z płytoteki takt pasujący do poprzedniego i do nastroju sali.
- EN: It works like a DJ who keeps picking from the record crate the bar that fits the last one and the mood of the room.

## Everyday example

- PL: Sterujesz postacią gałką pada, nagle zawracasz, a ona wykonuje naturalny obrót z przeniesieniem ciężaru, zamiast obracać się w miejscu.
- EN: You steer a character with the gamepad stick, suddenly reverse, and she makes a natural weight-shifting turn instead of spinning in place.

## This concerns you if you…

- PL: animujesz chodzenie i bieganie postaci w grze
- PL: masz dużo nagrań motion capture
- PL: walczysz z limitem pamięci na animacje
- EN: animate character walking and running in a game
- EN: have a lot of motion-capture data
- EN: struggle with memory limits for animation

## Keywords

motion matching · learned motion matching · inertialization · feature database · trajectory prediction · Unreal Engine Motion Matching · pose search

## How it works

- PL: Każda klatka bazy jest opisana wektorem cech: pozycje i prędkości stóp, prędkość bioder i próbki przyszłej trajektorii. W grze z bieżącej pozy i żądanej ścieżki powstaje zapytanie, wyszukiwanie najbliższego sąsiada wskazuje klatkę, a skoki wygładza inercjalizacja. Wersja uczona zastępuje bazy sieciami (dekompresor, krok, projektor).
- EN: Each database frame is described by a feature vector: foot positions and velocities, hip velocity and future trajectory samples. In-game, a query is built from the current pose and desired path, nearest-neighbour search picks a frame, and inertialisation smooths the jump. The learned variant replaces the databases with networks (decompressor, stepper, projector).

## Limits

- PL: Metoda tylko odtwarza nagrany ruch i nie miesza danych, więc luki w nagraniach widać od razu. Pamięć rośnie z każdym nowym stylem i stawem. Wersja uczona oszczędza pamięć, ale wymaga treningu sieci i może wprowadzać drobne błędy.
- EN: The method only plays back recorded motion and does not blend data, so gaps in recordings show at once. Memory grows with every new style and joint. The learned version saves memory but needs network training and can add small errors.

## Key terms

- PL: **wektor cech**: Kilkanaście liczb opisujących pozę i kierunek ruchu w danej klatce.
- PL: **inercjalizacja**: Wygładzanie przeskoku między klipami przez wygaszanie różnicy póz.
- EN: **feature vector**: A dozen or so numbers describing pose and heading in a frame.
- EN: **inertialization**: Smoothing a jump between clips by decaying the pose difference.

## Know first

- [Metoda k najbliższych sąsiadów (k-NN) (k-nearest neighbours)](https://aiatlasgraph.com/t/knn.md)

## Related topics

Untyped, symmetric "see also" links.

- [Neuronowe sterowanie ruchem postaci (Neural character controllers)](https://aiatlasgraph.com/t/neuralcharcontrol.md)

## Sources

- [Introducing Learned Motion Matching](<https://www.ubisoft.com/en-us/studio/laforge/news/6xXL85Q3bF2vEj76xmnmIu/introducing-learned-motion-matching>) `holden-learned-motion-matching-2020` · by Daniel Holden (Ubisoft La Forge)

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/motionmatching · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
