ExplosiveDamage🔗

Hérite: Area3D

This class defines an explosive damage area.

Description🔗

It detects nearby bodies within a radius defined by a child CollisionShape3D or CollisionPolygon3D and also initiates a blast that applies impulse and damages to detected bodies based on their distance from the explosion.

Propriétés🔗

int

damage

1

int

blast_force

1500

Curve

falloff

Node

source

null

Méthodes🔗

void

_ready()

void

_physics_process(_delta: float)

void

_on_body_shape_entered(_body_rid: RID, body: Node, _body_shape_idx: int, local_shape_idx: int)


Descriptions de propriété🔗

int damage = 1 🔗

La quantité de dégâts de base


int blast_force = 1500 🔗

L'intensité de la force de l'explosion, en Newtons.


Curve falloff 🔗

Un facteur qui détermine comment les dégâts diminuent avec la distance par rapport au centre de l'explosion.


Node source = null 🔗

L'entité responsable des dégâts.


Descriptions de méthode🔗

void _ready() 🔗

There is currently no description for this method. Please help us by contributing one!


void _physics_process(_delta: float) 🔗

There is currently no description for this method. Please help us by contributing one!


void _on_body_shape_entered(_body_rid: RID, body: Node, _body_shape_idx: int, local_shape_idx: int) 🔗

There is currently no description for this method. Please help us by contributing one!