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 ​
Vector3 | target_position | |
float | arrival_threshold | 0.5 |
Methods ​
void | set_arrival_threshold( threshold: float ) |
Vector3 | get_captured_target_position() |
float | get_distance_to_target() |
bool | wants_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