Navigation
API > API/Plugins > API/Plugins/MassCharacterTrajectory
Overrides default movement to drive the entity along the generated trajectory. Extends UMassMovementTrait to provide FMassMovementParameters for AI systems.
Adds FCharacterTrajectoryMovementTag (matched by UCharacterTrajectoryToMovementProcessor) and FMassCustomMovementTag (disables UMassApplyMovementProcessor and USpringMovementApplyProcessor so that trajectory movement is the sole movement authority).
Requires UCharacterTrajectoryTrait — validated at template build time.
Execution flows with this trait:
- With USpringMovementTrait: DesiredMovement -> UpdateSpring -> GenerateTrajectory -> MoveAlongTrajectory
- Without spring: DesiredMovement -> GenerateTrajectory -> MoveAlongTrajectory
| Name | UCharacterTrajectoryMovementTrait |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassCharacterTrajectory/Public/MassCharacterTrajectoryTrait.h |
| Include Path | #include "MassCharacterTrajectoryTrait.h" |
Syntax
UCLASS (MinimalAPI, EditInlineNew, CollapseCategories,
Meta=(DisplayName="Character Trajectory Movement"))
class UCharacterTrajectoryMovementTrait : public UMassMovementTrait
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMassEntityTraitBase → UMassMovementTrait → UCharacterTrajectoryMovementTrait