MoveToPointEffect ​
Inherits: CompositeEffect < Effect < DatabaseResource < Resource
Inherited by: ChargeToPointEffect, JumpToPointEffect, OrbitEffect, SwapEffect, TeleportToPointEffect
MoveToPointEffect - Base class for point-based movement effects Handles target position calculation and child effect application Uses tween-based movement (no physics collisions)
Properties ​
float | min_distance_to_target | 1.0 |
Vector3 | offset_from_entity | Vector3.ZERO |
bool | face_movement_direction | true |
bool | apply_child_effects_on_arrival | true |
Methods ​
void | process_before_start( effect_instance: EffectInstance ) |
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | apply_movement_to_point( _effect_instance: EffectInstance, _entity: Entity, _target_position: Vector3 ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
bool | is_one_off_application() |
Property descriptions ​
Target & Distance
float min_distance_to_target = 1.0 ​
How close to get to the target (stops this distance away)
Vector3 offset_from_entity = Vector3.ZERO ​
Offset from target position (rotated with target if target is Entity)
Animation & Effects
bool face_movement_direction = true ​
Whether entity should face the direction of movement
bool apply_child_effects_on_arrival = true ​
Whether to apply child effects when movement completes
Method descriptions ​
void process_before_start( effect_instance: EffectInstance ) ​
Override duration setup — point movement effects own their lifecycle via movement completion. Set duration to permanent (0.0) so start_effect() won't create competing duration timers. Child classes that need immediate mode override this themselves.
void specific_effect_logic( effect_instance: EffectInstance ) ​
What the effect does to its target when it is applied.
void apply_movement_to_point( _effect_instance: EffectInstance, _entity: Entity, _target_position: Vector3 ) ​
Virtual method for child classes to implement their movement logic
void on_apply_finished( effect_instance: EffectInstance ) ​
Called when the effect ends: takes back what it did.
String get_effect_description() ​
The text of the effect for tooltips, with its values filled in.
bool is_one_off_application() ​
What this effect does it does once, when it is applied: a loaded save does not do it again