[gd_scene load_steps=13 format=3 uid="uid://1kr3qqan3trk"]

[ext_resource type="PackedScene" uid="uid://vub54xgk5n0h" path="res://models/character.glb" id="1_mi4co"]

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ciynh"]
animation = &"RESET"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_gisb0"]
animation = &"Walk_forward"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_8e5fb"]
animation = &"RESET"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_mpr7b"]
animation = &"RESET"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_p13dl"]
animation = &"RESET"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_s1ris"]
animation = &"Walk_forward"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_5fikn"]
blend_point_0/node = SubResource("AnimationNodeAnimation_gisb0")
blend_point_0/pos = Vector2(0, 1)
blend_point_1/node = SubResource("AnimationNodeAnimation_8e5fb")
blend_point_1/pos = Vector2(0, 0)
blend_point_2/node = SubResource("AnimationNodeAnimation_mpr7b")
blend_point_2/pos = Vector2(-1, 0)
blend_point_3/node = SubResource("AnimationNodeAnimation_p13dl")
blend_point_3/pos = Vector2(1, 0)
blend_point_4/node = SubResource("AnimationNodeAnimation_s1ris")
blend_point_4/pos = Vector2(0, -1)

[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_thyyf"]
filter_enabled = true
filters = ["Character/Skeleton3D:Foot.L", "Character/Skeleton3D:Foot.R", "Character/Skeleton3D:IKTarget.Foot.L", "Character/Skeleton3D:IKTarget.Foot.R", "Character/Skeleton3D:PoleTarget.Foot.L", "Character/Skeleton3D:PoleTarget.Foot.R", "Character/Skeleton3D:hip", "Character/Skeleton3D:lowerleg.L", "Character/Skeleton3D:lowerleg.R", "Character/Skeleton3D:root", "Character/Skeleton3D:upperleg.L", "Character/Skeleton3D:upperleg.R"]

[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_7smdg"]

[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_hiswf"]
nodes/Idle/node = SubResource("AnimationNodeAnimation_ciynh")
nodes/Idle/position = Vector2(-140, 160)
nodes/Movement/node = SubResource("AnimationNodeBlendSpace2D_5fikn")
nodes/Movement/position = Vector2(-160, 300)
nodes/MovementBlend/node = SubResource("AnimationNodeBlend2_thyyf")
nodes/MovementBlend/position = Vector2(100, 160)
nodes/StateMachine/node = SubResource("AnimationNodeStateMachine_7smdg")
nodes/StateMachine/position = Vector2(72, 449.5)
node_connections = [&"MovementBlend", 0, &"Idle", &"MovementBlend", 1, &"Movement", &"output", 0, &"MovementBlend"]

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ewsvd"]
radius = 0.370388

[node name="Player" type="Player"]
floor_constant_speed = true

[node name="PlayerInput" type="PlayerInput" parent="."]
unique_name_in_owner = true

[node name="AnimationTree" type="AnimationTree" parent="."]
unique_name_in_owner = true
root_node = NodePath("%CharacterModel")
root_motion_track = NodePath("Character/Skeleton3D:root")
tree_root = SubResource("AnimationNodeBlendTree_hiswf")
anim_player = NodePath("../CharacterModel/AnimationPlayer")
parameters/Movement/blend_position = Vector2(0, 1)
parameters/MovementBlend/blend_amount = 1.0

[node name="CharacterModel" parent="." instance=ExtResource("1_mi4co")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0337329, 0)

[node name="Skeleton3D" parent="CharacterModel/Character" index="0"]
bones/0/rotation = Quaternion(1.12928e-22, 1, 2.98023e-08, -1.94707e-07)
bones/1/position = Vector3(-7.81751e-17, 0.826102, -2.26306e-09)
bones/1/rotation = Quaternion(-0.0189873, -2.29049e-11, -1.20665e-09, 0.99982)
bones/3/rotation = Quaternion(-0.013812, -0.124595, 8.42949e-05, 0.992112)
bones/4/rotation = Quaternion(0.0100466, -6.40205e-12, 6.37037e-10, 0.99995)
bones/5/rotation = Quaternion(-0.155668, -0.0127093, -0.131048, 0.978996)
bones/6/rotation = Quaternion(0.622596, -0.0622781, 0.281255, -0.727593)
bones/7/rotation = Quaternion(-0.182054, -0.0246642, -0.28686, 0.940191)
bones/8/rotation = Quaternion(-0.075374, 0.077368, 0.904636, 0.41227)
bones/8/scale = Vector3(1, 1, 1)
bones/9/rotation = Quaternion(0.133883, 0.153795, -0.700613, 0.683787)
bones/10/rotation = Quaternion(-0.160687, -0.0459479, -0.0475321, 0.984789)
bones/11/rotation = Quaternion(-0.030518, -0.0130498, -0.0216153, 0.999215)
bones/11/scale = Vector3(1, 1, 1)
bones/12/rotation = Quaternion(0.00872485, 0.00565777, 0.00131026, 0.999945)
bones/12/scale = Vector3(1, 1, 1)
bones/13/rotation = Quaternion(-0.617934, -0.0462445, 0.180663, 0.763793)
bones/13/scale = Vector3(1, 1, 1)
bones/14/rotation = Quaternion(-0.23045, 0.0743405, 0.160693, 0.956841)
bones/14/scale = Vector3(1, 1, 1)
bones/15/rotation = Quaternion(-0.541263, -0.0075276, 0.238029, 0.806424)
bones/15/scale = Vector3(1, 1, 1)
bones/16/rotation = Quaternion(-0.611023, -0.262913, 0.402215, 0.629087)
bones/16/scale = Vector3(1, 1, 1)
bones/17/rotation = Quaternion(0.0158022, 0.0368157, 0.177499, 0.983305)
bones/18/rotation = Quaternion(-0.115784, 0.0786985, 0.503797, 0.852402)
bones/19/rotation = Quaternion(-0.77808, 0.139756, 0.0140334, 0.612261)
bones/19/scale = Vector3(1, 1, 1)
bones/20/rotation = Quaternion(-0.0923591, 0.0238577, 0.0736641, 0.992711)
bones/21/rotation = Quaternion(-0.193467, 0.101022, 0.0447897, 0.974864)
bones/21/scale = Vector3(1, 1, 1)
bones/22/rotation = Quaternion(-0.293695, -0.10649, 0.259809, 0.91373)
bones/23/rotation = Quaternion(-0.0310475, -0.0162325, -0.00151608, 0.999385)
bones/24/rotation = Quaternion(0.140362, -0.0289769, -0.195164, 0.970242)
bones/24/scale = Vector3(1, 1, 1)
bones/25/rotation = Quaternion(0.585184, -0.476496, -0.473244, -0.454479)
bones/26/rotation = Quaternion(-0.28016, -0.457175, -0.503294, 0.67764)
bones/27/rotation = Quaternion(-0.327872, -0.333942, -0.116987, 0.875955)
bones/28/rotation = Quaternion(0.0214366, -0.420105, 0.0121654, 0.907141)
bones/28/scale = Vector3(1, 1, 1)
bones/30/rotation = Quaternion(-0.030518, 0.0130498, 0.0216153, 0.999215)
bones/30/scale = Vector3(1, 1, 1)
bones/31/rotation = Quaternion(-0.518356, -0.00412334, -0.00408936, 0.855145)
bones/31/scale = Vector3(1, 1, 1)
bones/32/rotation = Quaternion(-0.290993, 0.0788459, 0.0248015, 0.953148)
bones/33/rotation = Quaternion(-0.442666, -0.0105199, -0.00680268, 0.896599)
bones/33/scale = Vector3(1, 1, 1)
bones/34/rotation = Quaternion(-0.266884, 0.00530697, 0.000658861, 0.963714)
bones/34/scale = Vector3(1, 1, 1)
bones/35/rotation = Quaternion(-0.633479, 0.0476042, 0.0933771, 0.766628)
bones/36/rotation = Quaternion(-0.237876, -0.0162261, -0.0172922, 0.971006)
bones/36/scale = Vector3(1, 1, 1)
bones/37/rotation = Quaternion(-0.0107008, 0.00769704, 0.00365465, 0.999906)
bones/38/rotation = Quaternion(-0.510571, 0.048969, 0.105792, 0.851896)
bones/38/scale = Vector3(1, 1, 1)
bones/39/rotation = Quaternion(-0.461201, -0.0232723, -0.00676324, 0.886965)
bones/40/rotation = Quaternion(-0.0125688, 0.0114119, 0.00134584, 0.999855)
bones/40/scale = Vector3(1, 1, 1)
bones/41/rotation = Quaternion(-0.0497163, 0.0839877, -0.166226, 0.981246)
bones/41/scale = Vector3(1, 1, 1)
bones/42/rotation = Quaternion(-0.0310476, 0.0162325, 0.00151601, 0.999385)
bones/43/rotation = Quaternion(-0.00109123, -0.0104143, 0.0283537, 0.999543)
bones/44/position = Vector3(0.0938011, 0.72761, -0.389448)
bones/44/rotation = Quaternion(-0.697112, -0.0378561, 0.0426843, 0.714689)
bones/45/rotation = Quaternion(-0.82326, 6.6688e-08, -9.8818e-08, 0.567665)
bones/46/rotation = Quaternion(-0.00112372, -3.22102e-15, -2.85644e-12, 0.999999)
bones/47/rotation = Quaternion(0.706312, -9.02181e-10, 9.04211e-10, 0.707901)
bones/47/scale = Vector3(1, 1, 1)
bones/48/rotation = Quaternion(-0.112129, 0.585204, -0.155744, 0.78785)
bones/49/rotation = Quaternion(0.314217, 0.921438, 0.101091, -0.204942)
bones/49/scale = Vector3(1, 1, 1)
bones/50/rotation = Quaternion(0.997309, -0.00549226, 0.0715034, -0.0152251)
bones/50/scale = Vector3(1, 1, 1)
bones/51/rotation = Quaternion(-0.00225666, 0.0030665, -0.000453778, 0.999993)
bones/51/scale = Vector3(1, 1, 1)
bones/52/rotation = Quaternion(0.665461, 0.000164993, -0.00238772, 0.746429)
bones/52/scale = Vector3(1, 1, 1)
bones/53/rotation = Quaternion(0.997309, 0.00549227, -0.0715033, -0.0152251)
bones/53/scale = Vector3(1, 1, 1)
bones/54/rotation = Quaternion(-0.00225666, -0.0030665, 0.000453779, 0.999993)
bones/54/scale = Vector3(1, 1, 1)
bones/55/rotation = Quaternion(0.665461, -0.000164961, 0.00238768, 0.746429)
bones/55/scale = Vector3(1, 1, 1)
bones/56/rotation = Quaternion(-0.707107, 8.33981e-07, 8.33981e-07, 0.707107)
bones/57/rotation = Quaternion(-0.707107, -8.33981e-07, -8.33981e-07, 0.707107)
bones/58/rotation = Quaternion(-0.707107, 1.25097e-07, 1.25097e-07, 0.707107)
bones/59/rotation = Quaternion(-0.707107, 1.25097e-07, 1.25097e-07, 0.707107)

[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(-1, -6.25965e-09, -8.71984e-08, 0, 0.997434, -0.071602, 8.74228e-08, -0.071602, -0.997434, -0.473602, 1.64332, -0.821665)
fov = 53.7

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_ewsvd")

[editable path="CharacterModel"]
