FMotionMatchingState

Choose your operating system:

Windows

macOS

Linux

References

Module

PoseSearch

Header

/Engine/Plugins/Experimental/Animation/PoseSearch/Source/Runtime/Public/PoseSearch/PoseSearchLibrary.h

Include

#include "PoseSearch/PoseSearchLibrary.h"

Syntax

USTRUCT(BlueprintType, Category="Animation|Pose Search")
struct FMotionMatchingState

Variables

Name Description

Public variable UProperty Transient

float

 

AssetPlayerTime

Current time within the asset player node.

Public variable UProperty Transient

FPoseSearchFeat...

 

ComposedQuery

The current query feature vector used to search the database for pose candidates.

Public variable UProperty Transient

TWeakObjectPtr<...

 

CurrentDatabase

When the database changes, the search parameters are reset.

Public variable UProperty Transient

int32

 

DbPoseIdx

The current pose we're playing from the database.

Public variable UProperty Transient

int32

 

DbSequenceIdx

The current animation we're playing from the database.

Public variable UProperty Transient

float

 

ElapsedPoseJumpTime

Time since the last pose jump.

Public variable UProperty Category BlueprintReadOnly visibleanywhere

EMotionMatching...

 

Flags

Evaluation flags relevant to the state of motion matching.

Public variable UProperty Transient

FPoseSearchWeig...

 

WeightsContext

Precomputed runtime weights.

Functions

Name Description

Public function

void

 

ComposeQuery

(
    const UPoseSearchDatabase* Dat...,
    const FTrajectorySampleRange& Traj...
)

Adds trajectory prediction and history information to ComposedQuery.

Public function Const

UE::PoseSear...

 

ComputeContinuityParameters

(
    const FAnimationUpdateContext& Con...
)

Updates DbPoseIdx to track DeltaTime and jumps to a follow-up sequence when available.

Public function

void

 

InitNewDatabaseSearch

(
    const UPoseSearchDatabase* Dat...,
    float SearchThrottleTime
)

Initializes the minimum required motion matching state.

Public function

void

 

JumpToPose

(
    const UE::PoseSearch::FDbSearchResu...
)

Internally stores the 'jump' to a new pose/sequence index and asset time for evaluation.