Skip to content

DirectMovement ​

Inherits: ProjectileMovement < RefCounted

Inherited by: ParametricCurvedMovement

Direct movement strategy - straight line to target Target position is captured at start and doesn't update

Variables ​

Vector3target_position
floatarrival_threshold0.5

Methods ​

voidset_arrival_threshold( threshold: float )
Vector3get_captured_target_position()
floatget_distance_to_target()
boolwants_to_continue()

Variable descriptions ​

Vector3 target_position ​

Target position captured at movement start

float arrival_threshold = 0.5 ​

Distance threshold to consider target reached

Method descriptions ​

void set_arrival_threshold( threshold: float ) ​

Set arrival threshold

Vector3 get_captured_target_position() ​

Get the captured target position

float get_distance_to_target() ​

Override distance calculation to use captured position

bool wants_to_continue() ​

Direct movement doesn't need to continue after triggers