Navigation
API > API/Plugins > API/Plugins/MotionTrajectory
Inheritance Hierarchy
- UActorComponent
- UCharacterTrajectoryComponent
References
| Module | MotionTrajectory |
| Header | /Engine/Plugins/Experimental/Animation/MotionTrajectory/Source/MotionTrajectory/Public/CharacterTrajectoryComponent.h |
| Include | #include "CharacterTrajectoryComponent.h" |
Syntax
UCLASS (Blueprintable, BlueprintType, Meta=(BlueprintSpawnableComponent), Experimental)
class UCharacterTrajectoryComponent : public UActorComponent
Remarks
Component for generating trajectories usable by Motion Matching. This component generates trajectories from ACharacter. This is intended to provide an example and starting point for using Motion Matching with a common setup using the default UCharacterMovementComponent. It is expected work flow to extend or replace this component for projects that use a custom movement component or custom movement modes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCharacterTrajectoryData | CharacterTrajectoryData | ||
| uint32 | LastUpdateFrameNumber | ||
| FTrajectorySamplingData | SamplingData | ||
| FPoseSearchQueryTrajectory | Trajectory | Trajectory stored in world space so it can be directly passed to Motion Matching. | |
| TArray< FVector > | TranslationHistory |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCharacterTrajectoryComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
||
| void | |||
| void | OnMovementUpdated
(
float DeltaSeconds, |
||
| void |