generated from krampus/template-godot4
26 lines
940 B
Plaintext
26 lines
940 B
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://bn8fdu4houoo2"]
|
|
|
|
[ext_resource type="Script" uid="uid://cn360k7cnl1uu" path="res://src/world/world_item/world_item.gd" id="1_sptcj"]
|
|
[ext_resource type="Script" uid="uid://deg5xd87cy8rg" path="res://src/props/interactive.gd" id="2_ngll7"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_0mein"]
|
|
radius = 0.25
|
|
|
|
[node name="WorldItem" type="MeshInstance3D"]
|
|
script = ExtResource("1_sptcj")
|
|
|
|
[node name="Interactive" type="StaticBody3D" parent="."]
|
|
unique_name_in_owner = true
|
|
collision_layer = 2
|
|
collision_mask = 0
|
|
script = ExtResource("2_ngll7")
|
|
enabled = true
|
|
verb = "INTERACTIVE_WORLDITEM_VERB"
|
|
metadata/_custom_type_script = "uid://deg5xd87cy8rg"
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Interactive"]
|
|
unique_name_in_owner = true
|
|
shape = SubResource("SphereShape3D_0mein")
|
|
|
|
[connection signal="activated" from="Interactive" to="." method="_on_interactive_activated"]
|