Armazon/props/items/item_fish.tscn

31 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

2024-01-28 13:44:54 -05:00
[gd_scene load_steps=6 format=3 uid="uid://dk6t7f80k4oy8"]
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_pselh"]
[ext_resource type="ArrayMesh" uid="uid://byv77knm7hii6" path="res://assets/props/fishe/fish.obj" id="2_1m6jf"]
[ext_resource type="AudioStream" uid="uid://bmisffsu4isig" path="res://assets/audio/SPLAT_rand.tres" id="3_784hx"]
[ext_resource type="Material" uid="uid://dj0su71vbjjj0" path="res://assets/props/fishe/mat_fish.tres" id="3_o2b7q"]
2024-01-28 16:05:33 -05:00
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_2g3yi"]
2024-01-28 13:44:54 -05:00
points = PackedVector3Array(-0.0889626, -3.59267e-05, -0.352568, -0.0832467, 0.05139, -0.340715, -0.0433272, 0.05139, -0.324438, -0.048029, -3.59267e-05, -0.334025, -0.0433272, -0.0514259, -0.324438, -0.0832467, -0.0514259, -0.340715, -0.342862, -3.59267e-05, -0.185632, -0.0876719, 0.068496, -0.295781, -0.066191, 0.068496, -0.305105, -0.0294983, 0.068496, -0.295781, -0.337975, 0.0380573, -0.17046, -0.351436, 0.05139, -0.144069, -0.319998, 0.068496, -0.134481, 0.526424, 0.0376261, -0.0320756, 0.526424, -3.59267e-05, -0.0561494, -0.0294983, -0.068532, -0.295781, 0.526424, -0.037662, -0.0320756, -0.066191, -0.068532, -0.305105, -0.0876719, -0.068532, -0.295781, -0.319998, -0.068532, -0.134481, -0.351436, -0.0514259, -0.144069, -0.337975, -0.0380933, -0.17046, -0.361946, -3.59267e-05, -0.147229, 0.00802422, 0.183566, 0.0437278, -0.372271, -3.59267e-05, -0.0915489, -0.359456, 0.0575352, -0.0895998, 0.526424, 0.0376261, 0.0320334, 0.566159, -3.59267e-05, -0.0320756, 0.00802422, -0.183566, 0.0437278, 0.526424, -0.037662, 0.0320334, -0.359456, -0.0575712, -0.0895998, 0.122989, 0.05139, 0.15019, -0.359456, 0.0575352, 0.0895576, -0.319998, 0.068496, 0.134386, -0.314835, 0.05139, 0.169575, -0.375682, -3.59267e-05, -0.0438228, -0.363513, 0.05139, -0.0438228, 0.49554, 0.0278872, 0.0498385, 0.526424, -3.59267e-05, 0.0561071, 0.566159, -3.59267e-05, 0.0320334, 0.122989, -0.0514259, 0.15019, -0.314835, -0.0514259, 0.169575, -0.319998, -0.068532, 0.134386, -0.359456, -0.0575712, 0.0895576, 0.49554, -0.0279231, 0.0498385, -0.363513, -0.0514259, -0.0438228, 0.117365, -3.59267e-05, 0.159145, 0.159866, -3.59267e-05, 0.15019, -0.342862, -3.59267e-05, 0.185589, -0.363513, 0.05139, 0.0437278, -0.375682, -3.59267e-05, 0.0437278, -0.372271, -3.59267e-05, 0.0915067, -0.351436, 0.05139, 0.143974, -0.337975, 0.0380573, 0.170418, -0.337975, -0.0380933, 0.170418, -0.351436, -0.0514259, 0.143974, -0.363513, -0.0514259, 0.0437278, -0.361946, -3.59267e-05, 0.147187)
[node name="ItemCylinder" type="RigidBody3D"]
collision_layer = 5
mass = 5.0
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_pselh")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
2024-01-28 16:05:33 -05:00
transform = Transform3D(0.75, 0, 0, 0, -3.27835e-08, -0.75, 0, 0.75, -3.27835e-08, 0.00282395, 0, 0)
2024-01-28 13:44:54 -05:00
mesh = ExtResource("2_1m6jf")
surface_material_override/0 = ExtResource("3_o2b7q")
2024-01-28 16:05:33 -05:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.75, 0, 0, 0, -3.27835e-08, -0.75, 0, 0.75, -3.27835e-08, 0.00282395, 0, 0)
shape = SubResource("ConvexPolygonShape3D_2g3yi")
2024-01-28 13:44:54 -05:00
[node name="sfx_fish" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_784hx")
[connection signal="collide" from="." to="sfx_fish" method="play"]