add particle hit effect

This commit is contained in:
2025-07-27 03:01:03 +10:00
parent d35384c0b3
commit 4f0dbe4c17
15 changed files with 399 additions and 115 deletions

View File

@@ -0,0 +1,18 @@
class_name Particles3DSelfDestructing extends GPUParticles3D
func _ready() -> void:
emitting = true
for node in get_children():
if node is GPUParticles3D:
(node as GPUParticles3D).emitting = true
finished.connect(_on_finished)
func init(start_position: Vector3, direction: Vector3 = Vector3.ZERO) -> void:
global_position = start_position
look_at(global_position + direction)
func _on_finished() -> void:
queue_free()

View File

@@ -0,0 +1 @@
uid://x3uft3uwakct