class
FMotionMatcher
Playback head over the database: advances the current clip, and every searchInterval seconds re-searches. It only switches when the best candidate beats simply CONTINUING the current animation by switchBias — without that margin the search flips between near-identical frames every interval and the character jitters.
- Module
- Animation
- Header
#include "Animation/MotionMatching.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
FMotionSearchFilter | filter | Restricts every search to frames carrying all required tags and none of the excluded ones; continuing the current frame is still allowed. |
float | searchInterval | Default 0.1f. |
float | switchBias | Default 0.5f. |
float | playRate | Default 1.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetDatabase | Swapping to another database (a chooser picking the crouch set over the stand set) keeps the playhead's clip and time and forces a search in the new set on the next Update: the old frame index means nothing there. |
const Ref<FMotionMatchingDatabase>& | Database | |
void | Reset | |
FMotionMatchResult | Update | |
int32_t | CurrentFrame | |
int32_t | ClipIndex | |
float | ClipTime | |
bool | IsMirrored | |
uint64_t | SearchCount | |
uint64_t | SwitchCount |
Function details
SetDatabase
C++
void SetDatabase(const Ref<FMotionMatchingDatabase>& database)Swapping to another database (a chooser picking the crouch set over the stand set) keeps the playhead's clip and time and forces a search in the new set on the next Update: the old frame index means nothing there.
Database
C++
const Ref<FMotionMatchingDatabase>& Database() constReset
C++
void Reset(int32_t frame = 0)Update
C++
FMotionMatchResult Update(float dt, FMotionQueryBuilder& query)CurrentFrame
C++
int32_t CurrentFrame() constClipIndex
C++
int32_t ClipIndex() constClipTime
C++
float ClipTime() constIsMirrored
C++
bool IsMirrored() constSearchCount
C++
uint64_t SearchCount() constSwitchCount
C++
uint64_t SwitchCount() constGenerated from Animation/MotionMatching.h via animation.json · Oct 26, 2026Version 1.0.0