297 lines
16 KiB
Plaintext

[gd_scene format=3 uid="uid://svj53e2xoio"]
[ext_resource type="PackedScene" uid="uid://d1xcqdqr1qeu6" path="res://assets/MixamoAmy.glb" id="1_0xm2m"]
[ext_resource type="Script" uid="uid://bjvgqujpqumj7" path="res://main.gd" id="1_1bvp3"]
[ext_resource type="AnimationLibrary" uid="uid://dwubn740aqx51" path="res://animation_library.res" id="3_1bvp3"]
[ext_resource type="AnimationNodeBlendTree" uid="uid://dqy0dgwsm8t46" path="res://animation_tree_walk_limp.tres" id="3_272bh"]
[ext_resource type="AnimationNodeBlendTree" uid="uid://vsf71o82lkld" path="res://animation_tree_walk_run.tres" id="6_5vw27"]
[ext_resource type="BLTAnimationNodeBlendTree" uid="uid://2qfwr1xkiw0s" path="res://synced_blend_tree_walk_limp.tres" id="6_272bh"]
[ext_resource type="BLTAnimationNodeBlendTree" uid="uid://qsk64ax2o47f" path="res://synced_blend_tree_walk_run.tres" id="7_272bh"]
[sub_resource type="Theme" id="Theme_272bh"]
default_font_size = 30
Label/fonts/DefaultFont = null
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h2yge"]
albedo_color = Color(0.427493, 0.42749307, 0.42749307, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_h2yge"]
material = SubResource("StandardMaterial3D_h2yge")
size = Vector2(20, 20)
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_h2yge"]
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
[sub_resource type="Sky" id="Sky_1bvp3"]
sky_material = SubResource("ProceduralSkyMaterial_h2yge")
[sub_resource type="Environment" id="Environment_lquwl"]
background_mode = 2
sky = SubResource("Sky_1bvp3")
tonemap_mode = 2
glow_enabled = true
[node name="Main" type="Node3D" unique_id=933302313]
script = ExtResource("1_1bvp3")
[node name="UI" type="CanvasLayer" parent="." unique_id=833570844]
[node name="MarginContainer" type="MarginContainer" parent="UI" unique_id=2079852348]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -153.5
offset_top = -40.0
offset_right = 153.5
grow_horizontal = 2
grow_vertical = 0
size_flags_horizontal = 4
size_flags_vertical = 8
theme = SubResource("Theme_272bh")
[node name="HBoxContainer" type="HBoxContainer" parent="UI/MarginContainer" unique_id=965781454]
layout_mode = 2
theme_override_constants/separation = 14
[node name="Label" type="Label" parent="UI/MarginContainer/HBoxContainer" unique_id=634588892]
layout_mode = 2
text = "Blend Weight"
[node name="BlendWeightSlider" type="HSlider" parent="UI/MarginContainer/HBoxContainer" unique_id=708139207]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
size_flags_vertical = 4
max_value = 1.0
step = 0.001
[node name="BlendWeightLabel" type="Label" parent="UI/MarginContainer/HBoxContainer" unique_id=1745243570]
unique_name_in_owner = true
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
text = "0.0"
horizontal_alignment = 2
[node name="MarginContainer2" type="MarginContainer" parent="UI" unique_id=1639984576]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 23.0
grow_horizontal = 2
theme_override_constants/margin_top = 80
[node name="HBoxContainer2" type="HBoxContainer" parent="UI/MarginContainer2" unique_id=1134641196]
layout_mode = 2
size_flags_vertical = 0
theme_override_constants/separation = 400
alignment = 1
[node name="Label" type="Label" parent="UI/MarginContainer2/HBoxContainer2" unique_id=1630716301]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Unsynced"
[node name="EmptyLabel" type="Label" parent="UI/MarginContainer2/HBoxContainer2" unique_id=991022601]
layout_mode = 2
[node name="Label3" type="Label" parent="UI/MarginContainer2/HBoxContainer2" unique_id=736671898]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Synced"
[node name="Level" type="Node3D" parent="." unique_id=1485026735]
[node name="MeshInstance3D" type="MeshInstance3D" parent="Level" unique_id=2025315417]
mesh = SubResource("PlaneMesh_h2yge")
skeleton = NodePath("../..")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Level" unique_id=468068224]
transform = Transform3D(1, 0, 0, 0, 0.14081486, 0.99003595, 0, -0.99003595, 0.14081486, 0, 2.0531263, 4.9494514)
shadow_enabled = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="Level" unique_id=1787092986]
environment = SubResource("Environment_lquwl")
[node name="Camera3D" type="Camera3D" parent="Level" unique_id=1534208216]
transform = Transform3D(1, 0, 0, 0, 0.95413065, 0.29939055, 0, -0.29939055, 0.95413065, 0, 1.649, 3.197)
fov = 36.8
[node name="Characters" type="Node3D" parent="." unique_id=1282309438]
[node name="MixamoAmyWalkLimp" parent="Characters" unique_id=829927137 instance=ExtResource("1_0xm2m")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.4, 0, 0)
[node name="AnimationTree" type="AnimationTree" parent="Characters/MixamoAmyWalkLimp" unique_id=1713995200]
tree_root = ExtResource("3_272bh")
anim_player = NodePath("../AnimationPlayer")
parameters/Blend2/blend_amount = 0.0
[node name="MixamoAmyWalkRun" parent="Characters" unique_id=1431806836 instance=ExtResource("1_0xm2m")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0, 0)
[node name="AnimationTree" type="AnimationTree" parent="Characters/MixamoAmyWalkRun" unique_id=1079690622]
tree_root = ExtResource("6_5vw27")
anim_player = NodePath("../AnimationPlayer")
parameters/Blend2/blend_amount = 0.0
[node name="MixamoAmyWalkLimpSynced" parent="Characters" unique_id=1018815116 instance=ExtResource("1_0xm2m")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0)
[node name="AnimationPlayer2" type="AnimationPlayer" parent="Characters/MixamoAmyWalkLimpSynced" unique_id=379737684]
libraries/animation_library = ExtResource("3_1bvp3")
[node name="SyncedAnimationGraph" type="BLTAnimationGraph" parent="Characters/MixamoAmyWalkLimpSynced" unique_id=1866796918]
animation_player = NodePath("../AnimationPlayer2")
tree_root = ExtResource("6_272bh")
skeleton = NodePath("../Armature/Skeleton3D")
parameters/BLTAnimationNodeBlend2/blend_amount = 1.0
[node name="MixamoAmyWalkRunSynced" parent="Characters" unique_id=2088190993 instance=ExtResource("1_0xm2m")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.4, 0, 0)
[node name="Skeleton3D" parent="Characters/MixamoAmyWalkRunSynced/Armature" parent_id_path=PackedInt32Array(2088190993, 259532241) index="0" unique_id=1597913436]
bones/0/position = Vector3(0.03366956, 22.30488, 0)
bones/2/position = Vector3(0.021933563, -1.2283401, -66.54255)
bones/2/rotation = Quaternion(-0.7020165, -0.025985688, 0.0034645642, 0.7116779)
bones/3/position = Vector3(1.8626451e-08, 3.9624305, -0.274297)
bones/3/rotation = Quaternion(-0.016682021, 0.014965671, -0.0026113286, 0.9997449)
bones/4/position = Vector3(5.9604645e-08, 14.123348, 0.2644268)
bones/4/rotation = Quaternion(0.008006268, 0.031130861, -0.0048357854, 0.9994714)
bones/5/position = Vector3(3.7252903e-08, 11.404536, 0.106110305)
bones/5/rotation = Quaternion(0.008006268, 0.03113088, -0.0048357914, 0.9994714)
bones/6/position = Vector3(2.9802322e-08, 9.946667, 1.6090326e-08)
bones/6/rotation = Quaternion(0.043000314, -0.01605664, 0.0336432, 0.9983794)
bones/7/position = Vector3(3.1292439e-07, 8.579114, 0.11416777)
bones/7/rotation = Quaternion(0.0067235962, -0.019416407, -0.004696545, 0.9997777)
bones/8/position = Vector3(1.8626451e-09, 25.089184, 0.33387405)
bones/9/position = Vector3(4.22409, 8.898366, -0.056614783)
bones/9/rotation = Quaternion(0.6655204, 0.33482903, -0.54497546, 0.38467056)
bones/10/position = Vector3(7.763405e-07, 8.86101, -1.885943e-05)
bones/10/rotation = Quaternion(0.3856572, -0.029256662, -0.20285419, 0.8995903)
bones/11/position = Vector3(-6.736064e-08, 18.975187, -5.359281e-06)
bones/11/rotation = Quaternion(0.0491358, 0.18193112, 0.21587172, 0.95806384)
bones/12/position = Vector3(2.0505329e-06, 19.896036, 4.198435e-06)
bones/12/rotation = Quaternion(-0.10542738, 0.21719287, 0.097704284, 0.9654874)
bones/13/position = Vector3(-2.0888743, 2.1412597, 1.2094326)
bones/13/rotation = Quaternion(0.25766087, -0.0057431525, 0.24790713, 0.93387365)
bones/14/position = Vector3(-0.3297696, 2.5601492, 5.6111962e-06)
bones/14/rotation = Quaternion(-0.02088847, -0.0012659901, -0.06479406, 0.9976792)
bones/15/position = Vector3(0.07692051, 2.7271638, -7.698024e-07)
bones/15/rotation = Quaternion(0.041175473, -5.169663e-07, -3.3207877e-07, 0.99915195)
bones/16/position = Vector3(0.25285125, 2.2376482, -2.5033949e-06)
bones/17/position = Vector3(-2.5860305, 6.9422946, 0.029643927)
bones/17/rotation = Quaternion(0.32230198, 0.013257779, 0.0790869, 0.9432342)
bones/18/position = Vector3(0.0010065138, 2.844871, 2.6222544e-05)
bones/18/rotation = Quaternion(0.51890975, -0.009350935, 0.048978366, 0.8533736)
bones/19/position = Vector3(-0.001300633, 2.6654923, -3.370296e-06)
bones/19/rotation = Quaternion(0.0067229928, -1.8172469e-07, -1.12402185e-08, 0.9999774)
bones/20/position = Vector3(0.00029665232, 2.2974284, 2.6011842e-06)
bones/21/position = Vector3(-0.81500757, 6.8271494, -0.11008961)
bones/21/rotation = Quaternion(0.44832447, -0.029388895, 0.08389875, 0.8894394)
bones/22/position = Vector3(-0.011725575, 3.256784, 9.871595e-06)
bones/22/rotation = Quaternion(0.6974019, -0.007876825, 0.0774008, 0.71244484)
bones/23/position = Vector3(-0.00070961565, 3.1778917, -4.440292e-06)
bones/23/rotation = Quaternion(0.05807299, -2.1569534e-08, -4.8931874e-08, 0.99831235)
bones/24/position = Vector3(0.012437165, 2.6951318, 2.2368273e-05)
bones/25/position = Vector3(0.89882326, 6.7787366, -0.023027958)
bones/25/rotation = Quaternion(0.43942147, -0.11050543, -0.00536839, 0.8914418)
bones/26/position = Vector3(-0.0040293336, 2.958041, 1.3685599e-05)
bones/26/rotation = Quaternion(0.70637834, 0.0028474892, 0.061491687, 0.70515275)
bones/27/position = Vector3(0.0024927258, 2.756927, -1.8636636e-05)
bones/27/rotation = Quaternion(-0.0033205294, 3.9059813e-08, 6.5682637e-09, 0.9999945)
bones/28/position = Vector3(0.0015397072, 2.3345788, 1.1771219e-05)
bones/29/position = Vector3(2.5022223, 6.3907866, 0.08744741)
bones/29/rotation = Quaternion(0.5366728, -0.15708813, -0.01123394, 0.8289629)
bones/30/position = Vector3(0.0032016933, 2.6237173, 5.5511973e-06)
bones/30/rotation = Quaternion(0.6318143, 0.022965502, 0.05855106, 0.7725639)
bones/31/position = Vector3(0.003878951, 2.1320877, -1.2886679e-06)
bones/31/rotation = Quaternion(-0.06925962, -1.0360488e-07, -7.0190005e-08, 0.9975987)
bones/32/position = Vector3(-0.0070759356, 1.7932303, -8.8289596e-07)
bones/33/position = Vector3(-4.2240915, 8.897269, -0.030230172)
bones/33/rotation = Quaternion(0.65423024, -0.3460148, 0.5481125, 0.38965285)
bones/34/position = Vector3(9.327891e-07, 8.8610115, -9.847447e-06)
bones/34/rotation = Quaternion(0.33522785, 0.13258426, -0.06878553, 0.93022156)
bones/35/position = Vector3(6.476337e-07, 18.973557, 5.8403616e-06)
bones/35/rotation = Quaternion(0.06291787, -0.06795199, -0.34171283, 0.9352305)
bones/36/position = Vector3(-7.630494e-08, 19.89834, -1.8180976e-06)
bones/36/rotation = Quaternion(-0.13934937, -0.17929602, 0.059740018, 0.972042)
bones/37/position = Vector3(2.0620086, 2.1477072, 1.2410417)
bones/37/rotation = Quaternion(0.20313361, 0.020001005, -0.30569944, 0.9299916)
bones/38/position = Vector3(0.2744484, 2.5658755, 3.7584634e-06)
bones/38/rotation = Quaternion(0.07182112, -0.15283245, 0.11806564, 0.97854203)
bones/39/position = Vector3(-0.076725245, 2.730221, -7.234994e-06)
bones/39/rotation = Quaternion(0.037325032, -2.1781963e-08, 1.19075e-07, 0.99930316)
bones/40/position = Vector3(-0.19772077, 2.2442596, 9.685756e-06)
bones/41/position = Vector3(2.5699375, 7.0537868, 0.05093465)
bones/41/rotation = Quaternion(0.44285733, 0.008293978, -0.03807221, 0.89574504)
bones/42/position = Vector3(-0.0015108623, 2.816315, -9.529522e-06)
bones/42/rotation = Quaternion(0.5924978, 0.028048418, -0.045164384, 0.80381584)
bones/43/position = Vector3(0.0011758618, 2.6396425, 2.472788e-06)
bones/43/rotation = Quaternion(0.0026853334, 3.311302e-08, -5.8677845e-08, 0.9999965)
bones/44/position = Vector3(0.00033191964, 2.2415001, 1.3194513e-06)
bones/45/position = Vector3(0.76549155, 7.018211, -0.09038047)
bones/45/rotation = Quaternion(0.46793976, 0.036938474, -0.033631414, 0.88234746)
bones/46/position = Vector3(0.008488461, 3.3401706, -6.017696e-06)
bones/46/rotation = Quaternion(0.6849328, 0.039953418, -0.055356182, 0.72540087)
bones/47/position = Vector3(-0.007900611, 3.0566626, 5.4270527e-06)
bones/47/rotation = Quaternion(-0.027461762, -2.0760188e-08, 5.6872928e-08, 0.9996229)
bones/48/position = Vector3(-0.00058989227, 2.63951, 9.457464e-06)
bones/49/position = Vector3(-0.8923034, 6.9110794, -0.12160769)
bones/49/rotation = Quaternion(0.47066858, 0.033067867, -0.0154665, 0.8815544)
bones/50/position = Vector3(-0.00297606, 2.923956, 1.7109673e-05)
bones/50/rotation = Quaternion(0.6740056, -0.019516876, -0.06773796, 0.7353549)
bones/51/position = Vector3(0.0026345253, 2.717951, -5.427028e-06)
bones/51/rotation = Quaternion(0.009096339, 7.025756e-08, 2.6579988e-08, 0.99995863)
bones/52/position = Vector3(0.0003426671, 2.379634, 1.4747493e-06)
bones/53/position = Vector3(-2.4431183, 6.453577, 0.12551774)
bones/53/rotation = Quaternion(0.4273077, 0.025455933, -0.032704208, 0.9031559)
bones/54/position = Vector3(-0.0026362836, 2.6278691, 4.2827646e-06)
bones/54/rotation = Quaternion(0.73083663, -0.044815022, -0.09265602, 0.6747476)
bones/55/position = Vector3(-0.001860708, 2.1224687, 9.940322e-07)
bones/55/rotation = Quaternion(-0.03619139, -1.1229469e-07, 2.121775e-08, 0.9993449)
bones/56/position = Vector3(0.004502952, 1.7919822, 1.2924895e-05)
bones/57/position = Vector3(7.557004, -4.826265, 0.30053553)
bones/57/rotation = Quaternion(-0.036588665, -0.34452513, -0.9375553, 0.030883614)
bones/58/position = Vector3(-0.124621816, 24.06574, 0.10470339)
bones/58/rotation = Quaternion(-0.17203768, -0.022209316, 0.008335125, 0.98480475)
bones/59/position = Vector3(-0.0060171685, 33.063114, 0.00394835)
bones/59/rotation = Quaternion(0.500414, -0.0045057763, 0.0039036346, 0.86576587)
bones/60/position = Vector3(-0.0052775713, 12.893309, -0.5155027)
bones/60/rotation = Quaternion(0.34159487, -0.05822111, 0.025601145, 0.9376929)
bones/61/position = Vector3(0.014227723, 6.420835, 0.007887725)
bones/62/position = Vector3(-7.557004, -4.826261, 0.30053535)
bones/62/rotation = Quaternion(-0.105550915, -0.06569394, 0.9920036, 0.021728868)
bones/63/position = Vector3(0.12476807, 24.070103, -0.14491707)
bones/63/rotation = Quaternion(-0.21048684, -0.113292366, 0.05454326, 0.96947676)
bones/64/position = Vector3(0.0060205855, 33.063133, 0.004499323)
bones/64/rotation = Quaternion(0.5910368, -0.030297726, -0.04612658, 0.8047532)
bones/65/position = Vector3(0.005378528, 12.718271, -0.52236915)
bones/65/rotation = Quaternion(0.4105115, 0.015659228, -0.01512902, 0.91159546)
bones/66/position = Vector3(-0.014239848, 6.412128, 0.0079107955)
[node name="AnimationPlayer" parent="Characters/MixamoAmyWalkRunSynced" index="1" unique_id=99701443]
active = false
[node name="AnimationPlayer2" type="AnimationPlayer" parent="Characters/MixamoAmyWalkRunSynced" unique_id=1255239074]
active = false
libraries/animation_library = ExtResource("3_1bvp3")
[node name="SyncedAnimationGraph" type="BLTAnimationGraph" parent="Characters/MixamoAmyWalkRunSynced" unique_id=1602406394]
animation_player = NodePath("../AnimationPlayer2")
tree_root = ExtResource("7_272bh")
skeleton = NodePath("../Armature/Skeleton3D")
parameters/BLTAnimationNodeBlend2/blend_amount = 0.0
[connection signal="value_changed" from="UI/MarginContainer/HBoxContainer/BlendWeightSlider" to="." method="_on_blend_weight_slider_value_changed"]
[editable path="Characters/MixamoAmyWalkLimp"]
[editable path="Characters/MixamoAmyWalkRun"]
[editable path="Characters/MixamoAmyWalkLimpSynced"]
[editable path="Characters/MixamoAmyWalkRunSynced"]