[gd_scene load_steps=12 format=2]

[ext_resource path="res://scenes/hair/male-hair1.gltf" type="PackedScene" id=1]
[ext_resource path="res://scenes/hair/hair-control.gd" type="Script" id=2]

[sub_resource type="AnimationNodeAnimation" id=1]
animation = "hair_back"

[sub_resource type="AnimationNodeAnimation" id=2]
animation = "hair_front"

[sub_resource type="AnimationNodeAnimation" id=3]
animation = "hair_down"

[sub_resource type="AnimationNodeAnimation" id=4]
animation = "hair_up"

[sub_resource type="AnimationNodeAnimation" id=5]
animation = "hair_down"

[sub_resource type="AnimationNodeBlendSpace2D" id=6]
blend_point_0/node = SubResource( 1 )
blend_point_0/pos = Vector2( -1, 0 )
blend_point_1/node = SubResource( 2 )
blend_point_1/pos = Vector2( 1, 0 )
blend_point_2/node = SubResource( 3 )
blend_point_2/pos = Vector2( 0, -1 )
blend_point_3/node = SubResource( 4 )
blend_point_3/pos = Vector2( 0, 1 )
blend_point_4/node = SubResource( 5 )
blend_point_4/pos = Vector2( 0, 0 )

[sub_resource type="AnimationNodeAnimation" id=7]
animation = "hair_left"

[sub_resource type="AnimationNodeAnimation" id=8]
animation = "hair_right"

[sub_resource type="AnimationNodeBlendSpace1D" id=9]
blend_point_0/node = SubResource( 6 )
blend_point_0/pos = 0.0
blend_point_1/node = SubResource( 7 )
blend_point_1/pos = -1.0
blend_point_2/node = SubResource( 8 )
blend_point_2/pos = 1.0

[node name="male-hair1" groups=[
"hair",
] instance=ExtResource( 1 )]
script = ExtResource( 2 )

[node name="Skeleton" parent="skelton" index="0" groups=[
"hair",
]]

[node name="AnimationTree" type="AnimationTree" parent="." index="2" groups=[
"hair",
]]
tree_root = SubResource( 9 )
anim_player = NodePath("../AnimationPlayer")
active = true
parameters/blend_position = 0.0
parameters/0/blend_position = Vector2( 0, -1 )
