DreamBall/elements/collectible.tscn
2025-02-22 17:16:30 +01:00

34 lines
910 B
Text

[gd_scene load_steps=3 format=3 uid="uid://bwxor1n3m4d4a"]
[sub_resource type="GDScript" id="GDScript_f1obc"]
script/source = "extends Area3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_body_entered(body: Node3D) -> void:
print(body, \" !!\")
pass # Replace with function body.
"
[sub_resource type="SphereShape3D" id="SphereShape3D_lnm1h"]
radius = 1.0
[node name="Collectible" type="Area3D"]
script = SubResource("GDScript_f1obc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_lnm1h")
[node name="CSGSphere3D" type="CSGSphere3D" parent="."]
radius = 1.0
[connection signal="body_entered" from="." to="." method="_on_body_entered"]