class

FMotionQueryBuilder

Assembles a query in RAW feature units; the matcher normalizes it before the search. The pose block normally comes from the database frame currently playing (CopyPoseFromFrame) — the cheapest exact answer to "what is the body doing right now" while the character is being driven by the database itself.

Module
Animation
Header
#include "Animation/MotionMatching.h"
Namespace
Mowo

Constructors

SignatureNameDescription
explicit FMotionQueryBuilder(const FMotionMatchingDatabase& database)FMotionQueryBuilder

Public functions

ReturnsNameDescription
voidClear
voidSetFuture
voidSetPast
voidSetPoseA pose set here (from FMotionPoseHistory) is what the matcher searches with; without one it copies the playing frame's pose.
boolHasPose
voidCopyPoseFromFrame
voidCopyTrajectoryFromFrame
voidCopyFromFrame
const std::vector<float>&Raw
const std::vector<float>&Normalized

Function details

FMotionQueryBuilder

C++
explicit FMotionQueryBuilder(const FMotionMatchingDatabase& database)

Clear

C++
void Clear()

SetFuture

C++
void SetFuture(uint32_t index, const Vec2& position, const Vec2& direction)

SetPast

C++
void SetPast(uint32_t index, const Vec2& position, const Vec2& direction)

SetPose

C++
void SetPose(const float* poseBlock)

A pose set here (from FMotionPoseHistory) is what the matcher searches with; without one it copies the playing frame's pose.

HasPose

C++
bool HasPose() const

CopyPoseFromFrame

C++
void CopyPoseFromFrame(uint32_t frame)

CopyTrajectoryFromFrame

C++
void CopyTrajectoryFromFrame(uint32_t frame)

CopyFromFrame

C++
void CopyFromFrame(uint32_t frame)

Raw

C++
const std::vector<float>& Raw() const

Normalized

C++
const std::vector<float>& Normalized() const
Generated from Animation/MotionMatching.h via animation.json · Oct 26, 2026Version 1.0.0