cawez_puzzlebox/primitives/death/kill_cube.gd
2024-06-22 18:04:25 -04:00

13 lines
272 B
GDScript

extends Area3D
@export var death_direction = Vector3(0,-1,0)
# Called when the node enters the scene tree for the first time.
func _ready():
body_entered.connect(_on_area_entered)
func _on_area_entered(body : Node3D) -> void:
body.death_direction = death_direction