Armazon/props/items/item_shroom.tscn

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-01-28 13:44:54 -05:00
[gd_scene load_steps=6 format=3 uid="uid://0ddfb2i4b03d"]
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_0ke3f"]
[ext_resource type="Material" uid="uid://1wix8dscq3ht" path="res://assets/props/blake1/mat_blake1.tres" id="2_ntdws"]
[ext_resource type="ArrayMesh" uid="uid://ih3jxj2cayq6" path="res://assets/props/blake1/shroom.obj" id="2_syi73"]
[ext_resource type="AudioStream" uid="uid://bm2blqgslq3iy" path="res://assets/audio/mushroom_rand.tres" id="4_rkjht"]
[sub_resource type="SphereShape3D" id="SphereShape3D_67cu3"]
radius = 0.2
[node name="ItemCylinder" type="RigidBody3D"]
collision_layer = 5
mass = 2.0
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_0ke3f")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.594827, -0.20928, 0)
material_override = ExtResource("2_ntdws")
mesh = ExtResource("2_syi73")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0238661, 0)
shape = SubResource("SphereShape3D_67cu3")
[node name="mushroom" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("4_rkjht")
bus = &"Reverb"
[connection signal="collide" from="." to="mushroom" method="play" flags=6]