ExplosiveDamage🔗

Inherits: 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.

Propiedades🔗

int

damage

1

int

blast_force

1500

Curve

falloff

Node

source

null

Métodos🔗

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)


Property Descriptions🔗

int damage = 1 🔗

The base amount of damage.


int blast_force = 1500 🔗

The magnitude of blast force, in Newtons.


Curve falloff 🔗

A factor that determines how damage decreases with distance from the explosion center.


Node source = null 🔗

The entity responsible for dealing damage.


Method Descriptions🔗

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!