UpdateMotionMatchingState

Implementation of the core motion matching algorithm

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"

Source

/Engine/Plugins/Experimental/Animation/PoseSearch/Source/Runtime/Private/PoseSearchLibrary.cpp

Syntax

void UpdateMotionMatchingState
(
    const FAnimationUpdateContext & Context,
    const UPoseSearchDatabase * Database,
    const FTrajectorySampleRange & Trajectory,
    const FMotionMatchingSettings & Settings,
    FMotionMatchingState & InOutMotionMatchingState
)

Remarks

Implementation of the core motion matching algorithm

Parameters

Parameter

Description

UpdateContext

Input animation update context providing access to the proxy and delta time

Database

Input collection of animations for motion matching

Trajectory

Input motion trajectory samples for pose search queries

Settings

Input motion matching algorithm configuration settings

InOutMotionMatchingState

Input/Output encapsulated motion matching algorithm and state

bOutJumpedToPose

Output motion matching decision to 'jump' to a new pose/sequence index in the database