#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 |
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.