diff --git a/demo/animation_library.res b/demo/animation_library.res index 52580cd..36320fb 100644 Binary files a/demo/animation_library.res and b/demo/animation_library.res differ diff --git a/demo/main.tscn b/demo/main.tscn index bc1df57..5d83e0f 100644 --- a/demo/main.tscn +++ b/demo/main.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://svj53e2xoio"] +[gd_scene load_steps=5 format=3 uid="uid://svj53e2xoio"] [ext_resource type="PackedScene" uid="uid://d1xcqdqr1qeu6" path="res://assets/MixamoAmy.glb" id="1_0xm2m"] -[ext_resource type="AnimationNodeBlendTree" uid="uid://c7o0gt3li5p4g" path="res://walk_limp_blend_tree.tres" id="2_h2yge"] +[ext_resource type="AnimationNodeBlendTree" uid="uid://dbkgln7hoxxc8" path="res://embedded_statemachine.tres" id="2_h2yge"] [ext_resource type="AnimationLibrary" uid="uid://dwubn740aqx51" path="res://animation_library.res" id="3_h2yge"] +[ext_resource type="SyncedBlendTree" uid="uid://cjeho6848x43q" path="res://synced_blend_tree_node.tres" id="4_1bvp3"] [node name="Node3D" type="Node3D"] @@ -14,6 +15,8 @@ root_node = NodePath("../MixamoAmy") tree_root = ExtResource("2_h2yge") anim_player = NodePath("../MixamoAmy/AnimationPlayer") parameters/Blend2/blend_amount = 0.44 +"parameters/Embedded StateMachine/conditions/is_healthy" = false +"parameters/Embedded StateMachine/conditions/is_limping" = false [node name="AnimationPlayer" type="AnimationPlayer" parent="."] active = false @@ -23,8 +26,9 @@ libraries = { } [node name="SyncedAnimationGraph" type="SyncedAnimationGraph" parent="."] -active = false -animation_tree = NodePath("../AnimationTree") +animation_player = NodePath("../AnimationPlayer") +tree_root = ExtResource("4_1bvp3") skeleton = NodePath("../MixamoAmy/Armature/Skeleton3D") +parameters/AnimationBlend2Node/blend_amount = 0.24 [editable path="MixamoAmy"]