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

#include <TrajectoryQuery.h>

Classes

struct  ControlPoint
 

Public Types

enum  EMode : AZ::u8 { MODE_TARGETDRIVEN = 0 , MODE_AUTOMATIC = 1 }
 

Public Member Functions

void Update (const ActorInstance &actorInstance, const FeatureTrajectory *trajectoryFeature, const TrajectoryHistory &trajectoryHistory, EMode mode, const AZ::Vector3 &targetPos, const AZ::Vector3 &targetFacingDir, bool useTargetFacingDir, float timeDelta, float pathRadius, float pathSpeed)
 
void DebugDraw (AzFramework::DebugDisplayRequests &debugDisplay, const AZ::Color &color) const
 
const AZStd::vector< ControlPoint > & GetPastControlPoints () const
 
const AZStd::vector< ControlPoint > & GetFutureControlPoints () const
 

Detailed Description

Builds the input trajectory query data for the motion matching algorithm. Reads the number of past and future samples and the time ranges from the trajectory feature, constructs the future trajectory based on the target and the past trajectory based on the trajectory history.


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