Hey. I don't understand how to do such simple thing.
Here's my code:
extends Area3D
func _on_body_entered(body):
print("body: " + str(body))
if body.name == "coin":
body.queue_free()
I tried it, but nothing happens when my player collides with the coin object.
Is there 100% way to collect the coin correctly?