unreal.CharacterMovementTrajectoryLibrary

class unreal.CharacterMovementTrajectoryLibrary(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Library of functions useful for generating trajectories based on the behavior of the UCharacterMovementComponent.

C++ Source:

  • Plugin: MotionTrajectory

  • Module: MotionTrajectory

  • File: CharacterMovementTrajectoryLibrary.h

classmethod step_character_movement_ground_prediction(delta_time, velocity, acceleration, character_movement_component) Vector

Approximate the behavior of the UCharacterMovementComponent during ground locomotion.

Parameters:
  • delta_time (float) – Length of time to predict forward. Running multiple shorter iterations will generate more accurate results than one large time step.

  • velocity (Vector) – Current velocity.

  • acceleration (Vector) – Current acceleration.

  • character_movement_component (CharacterMovementComponent) – Tuning values, such as GroundFriction, are read from the movement component.

Returns:

out_velocity (Vector): The resulting predicted velocity.

Return type:

Vector