Skip to content

ImpulseEffect ​

Inherits: MoveDirectionalEffect < CompositeEffect < Effect < DatabaseResource < Resource

ImpulseEffect: Initial velocity burst with natural decay Perfect for dashes, dodge rolls, knockbacks, and explosive movement

Properties ​

floatforce10.0
floatfriction_coefficient0.9
floatsafety_duration10.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 ​

Impulse Settings

float force = 10.0 ​

Initial velocity burst strength - higher = faster/further movement

float friction_coefficient = 0.9 ​

How quickly movement decays each frame (0.8 = fast decay, 0.95 = slow decay)

float safety_duration = 10.0 ​

Maximum time before forced cleanup (prevents infinite sliding)

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.