[gd_scene load_steps=10 format=3 uid="uid://bsnw37bqf5hgr"]

[ext_resource type="Shader" path="res://src/shaders/outline.gdshader" id="1_4j0xd"]

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_81ofd"]
particle_flag_align_y = true
direction = Vector3(0, 0, -1)
spread = 30.0
initial_velocity_min = 10.0
initial_velocity_max = 20.0
gravity = Vector3(0, -1, 0)

[sub_resource type="Curve" id="Curve_sr0ug"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2

[sub_resource type="ShaderMaterial" id="ShaderMaterial_pscwi"]
render_priority = 0
shader = ExtResource("1_4j0xd")
shader_parameter/color = null
shader_parameter/width = 1.0

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nu2w1"]
next_pass = SubResource("ShaderMaterial_pscwi")
shading_mode = 0

[sub_resource type="TubeTrailMesh" id="TubeTrailMesh_k2m4l"]
material = SubResource("StandardMaterial3D_nu2w1")
radius = 0.01
sections = 3
section_length = 0.1
curve = SubResource("Curve_sr0ug")

[sub_resource type="Animation" id="Animation_wcl8c"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:emitting")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}

[sub_resource type="Animation" id="Animation_1yygg"]
resource_name = "play"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:emitting")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(1),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_3glsu"]
_data = {
"RESET": SubResource("Animation_wcl8c"),
"lifetime": SubResource("Animation_1yygg")
}

[node name="BallisticImpact" type="GPUParticles3D"]
emitting = false
amount = 4
lifetime = 0.02
one_shot = true
explosiveness = 1.0
local_coords = true
process_material = SubResource("ParticleProcessMaterial_81ofd")
draw_pass_1 = SubResource("TubeTrailMesh_k2m4l")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_3glsu")
}
autoplay = "lifetime"
