Skip to content

ConstantMoveEffect ​

Inherits: MoveDirectionalEffect < CompositeEffect < Effect < DatabaseResource < Resource

ConstantMoveEffect: Maintains constant speed for specified duration Perfect for sustained flight, charge attacks, and magical movement

Properties ​

floatforce10.0
floatmovement_duration1.0

Methods ​

voidapply_movement( effect_instance: EffectInstance, entity: Entity, direction: Vector3 )
voidhandle_movement_collision( effect_instance: EffectInstance, collision: KinematicCollision3D )
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Constant Movement Settings

float force = 10.0 ​

Maintained speed throughout duration - higher = faster movement

float movement_duration = 1.0 ​

How long to maintain constant speed in seconds

Method descriptions ​

void apply_movement( effect_instance: EffectInstance, entity: Entity, direction: Vector3 ) ​

Moves the entity one step in the direction of the movement.

void handle_movement_collision( effect_instance: EffectInstance, collision: KinematicCollision3D ) ​

Called when the moving entity hits something: it bounces or stops, by the settings of the effect.

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

A short text for the effect editor that says what the effect does.