TinyAdventure/objects/PickupItem.tscn

24 lines
953 B
Plaintext
Raw Normal View History

2024-07-09 22:33:38 +02:00
[gd_scene load_steps=5 format=3 uid="uid://da5r82nvypfk4"]
[ext_resource type="Script" path="res://pickup_item.gd" id="1_ec7o8"]
[ext_resource type="Resource" uid="uid://dmjr6pmb17l2y" path="res://data/items/woodplanks.tres" id="2_dph0g"]
[ext_resource type="PackedScene" uid="uid://ysfnsrvgemi6" path="res://assets/resources/WoodPlanks.tscn" id="3_jmgh3"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_1ndog"]
height = 0.2
radius = 0.15682
[node name="Item" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00393829, 0)
script = ExtResource("1_ec7o8")
item = ExtResource("2_dph0g")
[node name="Planks" type="Node3D" parent="." instance=ExtResource("3_jmgh3")]
[node name="Area3D" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("CylinderShape3D_1ndog")
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]