42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://c1gdehrsytlkk"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bv0sfqdgwa85p" path="res://assets/Models/casing.blend" id="1_8ox1t"]
|
|
[ext_resource type="Script" path="res://assets/casing_2.gd" id="1_34yke"]
|
|
[ext_resource type="AudioStream" uid="uid://c76b5enfeodn5" path="res://assets/Audio/coin-drop-SBA-300024590.wav" id="3_op3tv"]
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ejwa0"]
|
|
margin = 0.001
|
|
height = 0.121962
|
|
radius = 0.0314789
|
|
|
|
[node name="casing_2" type="RigidBody3D" groups=["scene_rigidbody", "spawned"]]
|
|
collision_layer = 0
|
|
collision_mask = 5
|
|
mass = 0.1
|
|
continuous_cd = true
|
|
contact_monitor = true
|
|
max_contacts_reported = 1
|
|
linear_damp = 0.1
|
|
angular_damp = 0.1
|
|
script = ExtResource("1_34yke")
|
|
|
|
[node name="casing2" parent="." instance=ExtResource("1_8ox1t")]
|
|
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 = 30.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="DropSound" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource("3_op3tv")
|
|
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"]
|