[gd_scene load_steps=11 format=3 uid="uid://m38l4lmo1t7p"]

[ext_resource type="PackedScene" uid="uid://dk4bn1g4rpdnl" path="res://entities/player/playertools/grinding_tool_attached.glb" id="1_nfa00"]
[ext_resource type="Material" uid="uid://st2d73wbhj7" path="res://entities/objects/tools/PlayerTools01.material" id="2_gkb3i"]
[ext_resource type="AudioStream" uid="uid://cdxsvyod6itnt" path="res://sfx/ncl_grinding.ogg" id="3_oheow"]

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7wsos"]
animation = &"GR_Idle"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_hntq5"]
animation = &"GR"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_pxiby"]
advance_mode = 2
advance_condition = &"start"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_48vmn"]
advance_mode = 2
advance_condition = &"start"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_81rte"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_b5vn0"]
states/GR_Idle/node = SubResource("AnimationNodeAnimation_7wsos")
states/GR_Idle/position = Vector2(491, 52)
states/GR_Loop/node = SubResource("AnimationNodeAnimation_hntq5")
states/GR_Loop/position = Vector2(466, 129)
transitions = ["Start", "GR_Idle", SubResource("AnimationNodeStateMachineTransition_pxiby"), "GR_Idle", "GR_Loop", SubResource("AnimationNodeStateMachineTransition_48vmn"), "GR_Loop", "GR_Idle", SubResource("AnimationNodeStateMachineTransition_81rte")]
graph_offset = Vector2(88, -29)

[sub_resource type="AnimationNodeStateMachinePlayback" id="AnimationNodeStateMachinePlayback_mtfgb"]

[node name="grinding_tool_attached" instance=ExtResource("1_nfa00")]

[node name="Skeleton3D" parent="Grinding_Tool_Attached_Arm" index="0"]
bones/1/rotation = Quaternion(0.5, 0.5, -0.5, -0.5)
bones/2/rotation = Quaternion(0.5, -0.5, 0.5, -0.5)

[node name="Grinding_Tool_Attached" parent="Grinding_Tool_Attached_Arm/Skeleton3D" index="0"]
surface_material_override/0 = ExtResource("2_gkb3i")

[node name="AnimationPlayer" parent="." index="1"]
autoplay = "GR_Idle"

[node name="AnimationTree" type="AnimationTree" parent="." index="2"]
tree_root = SubResource("AnimationNodeStateMachine_b5vn0")
anim_player = NodePath("../AnimationPlayer")
active = true
parameters/playback = SubResource("AnimationNodeStateMachinePlayback_mtfgb")
parameters/conditions/start = false

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." index="3"]
stream = ExtResource("3_oheow")
attenuation_model = 3
volume_db = -1.608
