Armazon/props/items/item_moai.tscn
2024-01-28 13:44:54 -05:00

31 lines
1.2 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://bcy6n71n62h5o"]
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_t2rld"]
[ext_resource type="ArrayMesh" uid="uid://cqm7x6o3nf74v" path="res://assets/props/moai/Moai.obj" id="2_0vbs4"]
[ext_resource type="Material" uid="uid://cdxjl7hsbjn6r" path="res://assets/props/moai/mat_moai.tres" id="3_snjq5"]
[ext_resource type="AudioStream" uid="uid://b5nfvg4ne5m0a" path="res://assets/audio/boom.wav" id="4_6is60"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_87sdv"]
radius = 0.172372
height = 0.607493
[node name="ItemCylinder" type="RigidBody3D"]
collision_layer = 5
mass = 5.0
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_t2rld")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.296835, 0)
shape = SubResource("CapsuleShape3D_87sdv")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = ExtResource("2_0vbs4")
surface_material_override/0 = ExtResource("3_snjq5")
[node name="boom" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("4_6is60")
[connection signal="collide" from="." to="boom" method="play"]