57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://c1gdehrsytlkk"]
|
|
|
|
[ext_resource type="Script" uid="uid://dj34cf0sjkfkr" path="res://assets/casing.gd" id="1_6f8y7"]
|
|
[ext_resource type="PackedScene" uid="uid://bv0sfqdgwa85p" path="res://assets/Models/casing.blend" id="2_1ed71"]
|
|
[ext_resource type="AudioStream" uid="uid://csxr3p04o7tsm" path="res://assets/Audio/bullet-metal-casing-drop-1.mp3" id="3_6sr5n"]
|
|
[ext_resource type="AudioStream" uid="uid://dye211r1fct2k" path="res://assets/Audio/bullet-metal-casing-drop-2.mp3" id="4_bobmv"]
|
|
[ext_resource type="AudioStream" uid="uid://bvfsycfblxn4j" path="res://assets/Audio/bullet-metal-casing-drop-3.mp3" id="5_wvj0r"]
|
|
[ext_resource type="AudioStream" uid="uid://b4fyx4keuu0x4" path="res://assets/Audio/bullet-metal-casing-drop-4.mp3" id="6_qbbeb"]
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_p0vkd"]
|
|
bounce = 0.4
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ejwa0"]
|
|
margin = 0.001
|
|
height = 0.121962
|
|
radius = 0.0314789
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_kdfna"]
|
|
streams_count = 4
|
|
stream_0/stream = ExtResource("3_6sr5n")
|
|
stream_1/stream = ExtResource("4_bobmv")
|
|
stream_2/stream = ExtResource("5_wvj0r")
|
|
stream_3/stream = ExtResource("6_qbbeb")
|
|
|
|
[node name="casing" type="RigidBody3D" groups=["scene_rigidbody", "spawned"]]
|
|
collision_layer = 0
|
|
collision_mask = 37
|
|
mass = 0.1
|
|
physics_material_override = SubResource("PhysicsMaterial_p0vkd")
|
|
continuous_cd = true
|
|
contact_monitor = true
|
|
max_contacts_reported = 1
|
|
linear_damp = 0.1
|
|
angular_damp = 0.1
|
|
script = ExtResource("1_6f8y7")
|
|
|
|
[node name="casing2" parent="." instance=ExtResource("2_1ed71")]
|
|
transform = Transform3D(0.00523598, 9.20392e-06, -1.49999, 1.49999, 0.00261793, 0.00523599, 0.00261795, -1.5, -6.55667e-08, 0, 0, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(-0.00106233, -0.000701004, -0.999999, 0.999999, -0.000431764, -0.00106203, -0.000431026, -1, 0.000701458, -7.7486e-06, 0.000259597, -3.74019e-06)
|
|
shape = SubResource("CylinderShape3D_ejwa0")
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 10.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="DropSound" type="AudioStreamPlayer3D" parent="."]
|
|
stream = SubResource("AudioStreamRandomizer_kdfna")
|
|
volume_db = -2.0
|
|
unit_size = 1.0
|
|
bus = &"SFX"
|
|
|
|
[connection signal="body_shape_entered" from="." to="." method="_on_body_shape_entered"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|