Files
CosmicClash/Game/scripts/goal2.gd
T
2024-02-23 18:13:25 +00:00

15 lines
324 B
GDScript

extends Area3D
@export var ball: RigidBody3D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if (overlaps_body(ball)):
print("Goal scored in goal 2")