Open 3D Engine MotionMatching Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
EMotionFX::MotionMatching::MotionMatchingInstance Class Reference

#include <MotionMatchingInstance.h>

Inherits DebugDrawRequestBus::Handler.

Classes

struct  InitSettings
 

Public Member Functions

void Init (const InitSettings &settings)
 
void DebugDraw (AzFramework::DebugDisplayRequests &debugDisplay) override
 
void Update (float timePassedInSeconds, const AZ::Vector3 &targetPos, const AZ::Vector3 &targetFacingDir, bool useTargetFacingDir, TrajectoryQuery::EMode mode, float pathRadius, float pathSpeed)
 
void PostUpdate (float timeDelta)
 
void Output (Pose &outputPose)
 
MotionInstance * GetMotionInstance () const
 
ActorInstance * GetActorInstance () const
 
MotionMatchingDataGetData () const
 
size_t GetLowestCostFrameIndex () const
 
void SetLowestCostSearchFrequency (float frequency)
 
float GetNewMotionTime () const
 
FeatureTrajectoryGetTrajectoryFeature () const
 
const TrajectoryQueryGetTrajectoryQuery () const
 
const TrajectoryHistoryGetTrajectoryHistory () const
 
const Transform & GetMotionExtractionDelta () const
 

Detailed Description

The instance is where everything comes together. It stores the trajectory history, the trajectory query along with the query vector, knows about the last lowest cost frame frame index and stores the time of the animation that the instance is currently playing. It is responsible for motion extraction, blending towards a new frame in the motion capture database in case the algorithm found a better matching frame and executes the actual search.

Member Function Documentation

◆ GetTrajectoryFeature()

FeatureTrajectory * EMotionFX::MotionMatching::MotionMatchingInstance::GetTrajectoryFeature ( ) const
inline

Get the cached trajectory feature. The trajectory feature is searched in the feature schema used in the current instance at init time.


The documentation for this class was generated from the following file: