13 lines
272 B
GDScript
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
|