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.07
|
|
radius = 0.025
|
|
|
|
[node name="casing_2" type="RigidBody3D"]
|
|
collision_layer = 2
|
|
collision_mask = 7
|
|
mass = 0.1
|
|
continuous_cd = true
|
|
max_contacts_reported = 1
|
|
contact_monitor = true
|
|
linear_damp = 0.5
|
|
angular_damp = 0.5
|
|
script = ExtResource("1_34yke")
|
|
|
|
[node name="casing2" parent="." instance=ExtResource("1_8ox1t")]
|
|
transform = Transform3D(0.00349065, 6.13594e-06, -0.999994, 0.999992, 0.00174529, 0.00349065, 0.0017453, -0.999998, -4.37111e-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"]
|