AreaEffect ​
Inherits: CollisionEffect < CompositeEffect < Effect < DatabaseResource < Resource
Inherited by: MinimumApplicationAreaEffect
AreaEffect for effects that use a custom-defined collision shape
Properties ​
Shape3D | shape | |
bool | follow_originator | false |
bool | follow_originator_direction | false |
Vector3 | offset | Vector3(0, 0, 0) |
Methods ​
Array[Entity] | get_entities_in_area( effect_instance: EffectInstance ) |
Array[Variant] | get_all_targets_in_area( effect_instance: EffectInstance ) |
bool | is_following_originator( effect_instance: EffectInstance ) |
Transform3D | get_current_transform( effect_instance: EffectInstance ) |
void | update_collision_area( effect_instance: EffectInstance ) |
void | set_area_shape( new_shape: Shape3D ) |
void | set_follow_originator( follow: bool, follow_direction: bool = false ) |
void | set_position_offset( new_offset: Vector3 ) |
String | get_effect_description() |
String | get_editor_description() |
Property descriptions ​
Shape3D shape ​
The shape defining the area effect
bool follow_originator = false ​
If the area effect follows the originators transform for its lifecycle
bool follow_originator_direction = false ​
If the area effect follow the origionator rotation for its lifecycle
Vector3 offset = Vector3(0, 0, 0) ​
Offset position from target position area should be positioned
Method descriptions ​
Array[Entity] get_entities_in_area( effect_instance: EffectInstance ) ​
Get entities currently in the area (updated for new base class)
Array[Variant] get_all_targets_in_area( effect_instance: EffectInstance ) ​
Get all targets currently in the area (including InteractableObjects)
bool is_following_originator( effect_instance: EffectInstance ) ​
Check if effect is following originator
Transform3D get_current_transform( effect_instance: EffectInstance ) ​
Get current collision transform (useful for debugging)
void update_collision_area( effect_instance: EffectInstance ) ​
Force update the collision area (useful if originator moves significantly)
void set_area_shape( new_shape: Shape3D ) ​
Set the area shape
void set_follow_originator( follow: bool, follow_direction: bool = false ) ​
Set following behavior
void set_position_offset( new_offset: Vector3 ) ​
Set position offset
String get_effect_description() ​
Override description to include shape info
String get_editor_description() ​
A short text for the effect editor that says what the effect does.