[gd_scene load_steps=6 format=2]

[ext_resource path="res://materials/wood (particle).tres" type="Material" id=1]
[ext_resource path="res://objects/particles/Cube_Particles.gd" type="Script" id=2]
[ext_resource path="res://sounds/SFX/objects/cube_smash.wav" type="AudioStream" id=3]

[sub_resource type="ParticlesMaterial" id=1]
spread = 180.0
gravity = Vector3( 0, -1, 0 )
initial_velocity = 10.0
angular_velocity_random = 1.0

[sub_resource type="QuadMesh" id=2]
material = ExtResource( 1 )

[node name="Particles" type="Particles"]
amount = 25
speed_scale = 2.0
visibility_aabb = AABB( -7.88502, -8.37184, -7.6004, 15.8265, 16.0704, 16.4294 )
process_material = SubResource( 1 )
draw_pass_1 = SubResource( 2 )
script = ExtResource( 2 )

[node name="Timer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
autostart = true

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 3 )
unit_db = 12.0
unit_size = 2.0
pitch_scale = 1.5
autoplay = true

[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
