mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-07-12 18:43:49 +00:00
15 lines
324 B
GDScript
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")
|