Navigation
API > API/Plugins > API/Plugins/MotionTrajectory
Set of functions to help populate a FPoseSearchQueryTrajectory for motion matching. UCharacterTrajectoryComponent uses these functions, but they can also be used by a UAnimInstance to avoid the component.
| Name | FMotionTrajectoryLibrary |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/Animation/MotionTrajectory/Source/MotionTrajectory/Public/MotionTrajectoryLibrary.h |
| Include Path | #include "MotionTrajectoryLibrary.h" |
Syntax
struct FMotionTrajectoryLibrary
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void InitTrajectorySamples
(
FTransformTrajectory& Trajectory, |
MotionTrajectoryLibrary.h | ||
static FVector RemapVectorMagnitudeWithCurve
(
const FVector& Vector, |
MotionTrajectoryLibrary.h | ||
static void UpdateHistory_TransformHistory
(
FTransformTrajectory& Trajectory, |
Update history by tracking offsets that result from character intent (e.g. movement component velocity) and applying that to the current world transform. | MotionTrajectoryLibrary.h | |
static void UpdatePrediction_SimulateCharacterMovement
(
FTransformTrajectory& Trajectory, |
Update prediction by simulating the movement math for ground locomotion from UCharacterMovementComponent. | MotionTrajectoryLibrary.h |