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::TrajectoryHistory Class Reference

#include <TrajectoryHistory.h>

Public Types

using Sample = EMotionFX::MotionMatching::Sample
 

Public Member Functions

void Init (const Pose &pose, size_t jointIndex, const AZ::Vector3 &facingAxisDir, float numSecondsToTrack)
 
void Clear ()
 
void Update (float timeDelta)
 
void AddSample (const Pose &pose)
 
Sample Evaluate (float time) const
 time in range [0, m_numSecondsToTrack]
 
Sample EvaluateNormalized (float normalizedTime) const
 time in range [0, 1] where 0 is the current character position and 1 the oldest keyframe in the trajectory history
 
float GetNumSecondsToTrack () const
 
float GetCurrentTime () const
 
size_t GetJointIndex () const
 
void DebugDraw (AzFramework::DebugDisplayRequests &debugDisplay, const AZ::Color &color, float timeStart=0.0f) const
 
void DebugDrawSampled (AzFramework::DebugDisplayRequests &debugDisplay, size_t numSamples, const AZ::Color &color) const
 

Detailed Description

Used to store the trajectory history for the root motion (motion extraction node). The trajectory history is independent of the trajectory feature and captures a sample with every engine tick. The recorded history needs to record and track at least the time the trajectory feature/query requires.


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