feat(*): Add goal with basic collision

This commit is contained in:
Josh Creek
2024-02-23 18:13:25 +00:00
parent 0fd3098f14
commit 80882a9c5e
2 changed files with 29 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
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")