Navigation
API > API/Plugins > API/Plugins/MotionTrajectory > API/Plugins/MotionTrajectory/UCharacterMovementTrajectoryLibr-
References
| Module | MotionTrajectory |
| Header | /Engine/Plugins/Experimental/Animation/MotionTrajectory/Source/MotionTrajectory/Public/CharacterMovementTrajectoryLibrary.h |
| Include | #include "CharacterMovementTrajectoryLibrary.h" |
| Source | /Engine/Plugins/Experimental/Animation/MotionTrajectory/Source/MotionTrajectory/Private/CharacterMovementTrajectoryLibrary.cpp |
UFUNCTION&40;BlueprintPure, Category&61;"Motion Trajectory"&41;
static void StepCharacterMovementGroundPrediction
&40;
float InDeltaTime,
const FVector & InVelocity,
const FVector & InAcceleration,
const UCharacterMovementComponent &42; InCharacterMovementComponent,
FVector & OutVelocity
&41;
Remarks
Approximate the behavior of the UCharacterMovementComponent during ground locomotion.
Parameters
| Name | Description |
|---|---|
| InDeltaTime | Length of time to predict forward. Running multiple shorter iterations will generate more accurate results than one large time step. |
| InVelocity | Current velocity. |
| InAcceleration | Current acceleration. |
| InCharacterMovementComponent | Tuning values, such as GroundFriction, are read from the movement component. |
| OutVelocity | The resulting predicted velocity. |