#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 |
MotionMatchingData * | GetData () const |
size_t | GetLowestCostFrameIndex () const |
void | SetLowestCostSearchFrequency (float frequency) |
float | GetNewMotionTime () const |
FeatureTrajectory * | GetTrajectoryFeature () const |
const TrajectoryQuery & | GetTrajectoryQuery () const |
const TrajectoryHistory & | GetTrajectoryHistory () const |
const Transform & | GetMotionExtractionDelta () const |
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.
|
inline |
Get the cached trajectory feature. The trajectory feature is searched in the feature schema used in the current instance at init time.