This commit is contained in:
2026-01-21 23:40:20 +01:00
commit d1f8068081
478 changed files with 24902 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
extends Area3D
class_name HitBox
@export var active: bool = false
var attack: Attack
func _ready() -> void:
monitorable = false
func _process(delta: float) -> void:
if !attack: return
var boxesHurt: Array[HurtBox]
for area in get_overlapping_areas():
if area is HurtBox:
boxesHurt.push_back(area)
for box in boxesHurt:
box.hit(attack)