[gd_scene load_steps=5 format=2]

[ext_resource path="res://objects/Explosion.gd" type="Script" id=1]

[sub_resource type="SphereMesh" id=1]

[sub_resource type="SpatialMaterial" id=2]
flags_transparent = true
albedo_color = Color( 1, 0.694118, 0, 0.682353 )

[sub_resource type="SphereShape" id=3]
radius = 6.32837

[node name="Explosion" type="Spatial"]
script = ExtResource( 1 )

[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 6, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0 )
mesh = SubResource( 1 )
material/0 = SubResource( 2 )

[node name="Area" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="Area"]
shape = SubResource( 3 )

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

[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 4.5, 0, 0, 0, 4.5, 0, 0, 0, 4.5, 0, 0, 0 )
light_energy = 6.0
light_indirect_energy = 2.0
omni_range = 16.0

[node name="SFX" type="AudioStreamPlayer3D" parent="."]
unit_db = 6.0
unit_size = 10.0

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