generated from krampus/template-godot4
Smoother animation state blending
This commit is contained in:
parent
185508cb5c
commit
d792c5e929
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=32 format=3 uid="uid://dd7ebaau8a70n"]
|
||||
[gd_scene load_steps=29 format=3 uid="uid://dd7ebaau8a70n"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://fyy7y5h5iv1g" path="res://assets/models/bipedal_mech/scene.gltf" id="1_1xwab"]
|
||||
[ext_resource type="Animation" uid="uid://c0h2wkp2w2akg" path="res://assets/models/bipedal_mech/animations/cockpit_open.tres" id="2_puxwb"]
|
||||
|
@ -807,11 +807,6 @@ input_1/name = "air"
|
|||
input_1/auto_advance = true
|
||||
input_1/reset = true
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_i4t7e"]
|
||||
animation = &"idle"
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_4o56r"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_mmv50"]
|
||||
animation = &"jump_start"
|
||||
|
||||
|
@ -831,15 +826,6 @@ animation = &"landing"
|
|||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_p16mo"]
|
||||
|
||||
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_4cxl3"]
|
||||
xfade_time = 0.2
|
||||
input_0/name = "idle"
|
||||
input_0/auto_advance = false
|
||||
input_0/reset = true
|
||||
input_1/name = "walk"
|
||||
input_1/auto_advance = false
|
||||
input_1/reset = true
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_cg5gs"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_0wmuu"]
|
||||
|
@ -861,27 +847,22 @@ animation = &"walk_left"
|
|||
blend_point_0/node = SubResource("AnimationNodeAnimation_0wmuu")
|
||||
blend_point_0/pos = Vector2(0, 0)
|
||||
blend_point_1/node = SubResource("AnimationNodeAnimation_7wmbj")
|
||||
blend_point_1/pos = Vector2(0, 1)
|
||||
blend_point_1/pos = Vector2(0, -1)
|
||||
blend_point_2/node = SubResource("AnimationNodeAnimation_qwvra")
|
||||
blend_point_2/pos = Vector2(1, 0)
|
||||
blend_point_3/node = SubResource("AnimationNodeAnimation_dp6c3")
|
||||
blend_point_3/pos = Vector2(0, -1)
|
||||
blend_point_3/pos = Vector2(0, 1)
|
||||
blend_point_4/node = SubResource("AnimationNodeAnimation_07i74")
|
||||
blend_point_4/pos = Vector2(-1, 0)
|
||||
sync = true
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_u1qtb"]
|
||||
graph_offset = Vector2(-255.651, 28.6027)
|
||||
nodes/air_anim/node = SubResource("AnimationNodeAnimation_512j7")
|
||||
nodes/air_anim/position = Vector2(780, 640)
|
||||
nodes/air_scale/node = SubResource("AnimationNodeTimeScale_o8qjb")
|
||||
nodes/air_scale/position = Vector2(1040, 620)
|
||||
nodes/anim_state/node = SubResource("AnimationNodeTransition_je0j1")
|
||||
nodes/anim_state/position = Vector2(1620, 180)
|
||||
nodes/idle_anim/node = SubResource("AnimationNodeAnimation_i4t7e")
|
||||
nodes/idle_anim/position = Vector2(660, 40)
|
||||
nodes/idle_scale/node = SubResource("AnimationNodeTimeScale_4o56r")
|
||||
nodes/idle_scale/position = Vector2(900, 20)
|
||||
nodes/jump_start_anim/node = SubResource("AnimationNodeAnimation_mmv50")
|
||||
nodes/jump_start_anim/position = Vector2(760, 480)
|
||||
nodes/jump_start_scale/node = SubResource("AnimationNodeTimeScale_xurtg")
|
||||
|
@ -892,14 +873,12 @@ nodes/landing_anim/node = SubResource("AnimationNodeAnimation_h5pry")
|
|||
nodes/landing_anim/position = Vector2(760, 820)
|
||||
nodes/landing_scale/node = SubResource("AnimationNodeTimeScale_p16mo")
|
||||
nodes/landing_scale/position = Vector2(1020, 780)
|
||||
nodes/move_state/node = SubResource("AnimationNodeTransition_4cxl3")
|
||||
nodes/move_state/position = Vector2(1260, 40)
|
||||
nodes/output/position = Vector2(1940, 240)
|
||||
nodes/walk_scale/node = SubResource("AnimationNodeTimeScale_cg5gs")
|
||||
nodes/walk_scale/position = Vector2(900, 220)
|
||||
nodes/walk_space/node = SubResource("AnimationNodeBlendSpace2D_fl1ps")
|
||||
nodes/walk_space/position = Vector2(660, 260)
|
||||
node_connections = [&"air_scale", 0, &"air_anim", &"anim_state", 0, &"move_state", &"anim_state", 1, &"jump_state", &"idle_scale", 0, &"idle_anim", &"jump_start_scale", 0, &"jump_start_anim", &"jump_state", 0, &"air_scale", &"jump_state", 1, &"landing_scale", &"landing_scale", 0, &"landing_anim", &"move_state", 0, &"idle_scale", &"move_state", 1, &"walk_scale", &"output", 0, &"anim_state", &"walk_scale", 0, &"walk_space"]
|
||||
node_connections = [&"air_scale", 0, &"air_anim", &"anim_state", 0, &"walk_scale", &"anim_state", 1, &"jump_state", &"jump_start_scale", 0, &"jump_start_anim", &"jump_state", 0, &"air_scale", &"jump_state", 1, &"landing_scale", &"landing_scale", 0, &"landing_anim", &"output", 0, &"anim_state", &"walk_scale", 0, &"walk_space"]
|
||||
|
||||
[node name="Mech" instance=ExtResource("1_1xwab")]
|
||||
|
||||
|
@ -915,59 +894,52 @@ parameters/air_scale/scale = 1.0
|
|||
parameters/anim_state/current_state = "ground"
|
||||
parameters/anim_state/transition_request = ""
|
||||
parameters/anim_state/current_index = 0
|
||||
parameters/idle_scale/scale = 1.0
|
||||
parameters/jump_start_scale/scale = 1.5
|
||||
parameters/jump_state/current_state = ""
|
||||
parameters/jump_state/transition_request = "start"
|
||||
parameters/jump_state/current_index = -1
|
||||
parameters/landing_scale/scale = 1.0
|
||||
parameters/move_state/current_state = "idle"
|
||||
parameters/move_state/transition_request = ""
|
||||
parameters/move_state/current_index = 0
|
||||
parameters/walk_scale/scale = 1.0
|
||||
parameters/walk_space/blend_position = Vector2(0, 0)
|
||||
|
||||
[node name="Skeleton3D" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"]
|
||||
bones/1/position = Vector3(0, 0, 6.21364)
|
||||
bones/1/position = Vector3(0, 0, 6.4593)
|
||||
bones/1/rotation = Quaternion(0.707107, 0, 0, 0.707107)
|
||||
bones/1/scale = Vector3(1, 1, 1)
|
||||
bones/2/rotation = Quaternion(1.54543e-08, 1.54543e-08, -0.707107, 0.707107)
|
||||
bones/2/scale = Vector3(1, 1, 1)
|
||||
bones/3/rotation = Quaternion(0.650662, 0.670483, 0.248436, 0.255678)
|
||||
bones/3/rotation = Quaternion(0.655403, 0.67477, 0.236545, 0.243269)
|
||||
bones/3/scale = Vector3(1, 1, 1)
|
||||
bones/4/rotation = Quaternion(0.740773, 0.0533107, 0.0768275, 0.665215)
|
||||
bones/4/rotation = Quaternion(0.699318, 0.0562949, 0.0723183, 0.708911)
|
||||
bones/4/scale = Vector3(1, 1, 1)
|
||||
bones/5/rotation = Quaternion(-0.654891, -0.00113054, -0.106335, 0.748204)
|
||||
bones/5/rotation = Quaternion(-0.620872, -0.00141084, -0.101286, 0.77734)
|
||||
bones/5/scale = Vector3(1, 1, 1)
|
||||
bones/6/rotation = Quaternion(-0.430364, 0.0118815, -0.0624522, 0.900414)
|
||||
bones/7/rotation = Quaternion(-0.85122, 0.0348782, -0.176823, 0.49289)
|
||||
bones/6/rotation = Quaternion(-0.435511, 0.0113684, -0.0628699, 0.897913)
|
||||
bones/7/rotation = Quaternion(-0.840143, 0.0366528, -0.173714, 0.512483)
|
||||
bones/7/scale = Vector3(1, 1, 1)
|
||||
bones/9/rotation = Quaternion(-0.577893, -0.0977404, -0.0868737, 0.805568)
|
||||
bones/11/rotation = Quaternion(-0.847807, 0.0410584, -0.172462, 0.499794)
|
||||
bones/11/rotation = Quaternion(-0.836541, 0.0432875, -0.169133, 0.519346)
|
||||
bones/11/scale = Vector3(1, 1, 1)
|
||||
bones/13/rotation = Quaternion(-0.583833, -0.0928994, -0.0936977, 0.80108)
|
||||
bones/13/scale = Vector3(1, 1, 1)
|
||||
bones/15/rotation = Quaternion(0.993231, -0.0067672, 0.0811647, 0.0828119)
|
||||
bones/15/scale = Vector3(1, 1, 1)
|
||||
bones/17/rotation = Quaternion(0.751058, 0.0237227, 0.659159, 0.0293027)
|
||||
bones/17/rotation = Quaternion(0.752011, 0.0101233, 0.658997, 0.00997536)
|
||||
bones/17/scale = Vector3(1, 1, 1)
|
||||
bones/19/rotation = Quaternion(-0.399104, -0.525183, -0.304683, 0.687072)
|
||||
bones/19/scale = Vector3(0.999999, 1, 1)
|
||||
bones/21/rotation = Quaternion(0.855906, -0.0322478, 0.0593455, 0.512701)
|
||||
bones/23/rotation = Quaternion(0.865497, 0.00325926, 0.142898, 0.480088)
|
||||
bones/23/rotation = Quaternion(0.900778, 0.00355154, 0.148657, 0.408028)
|
||||
bones/23/scale = Vector3(1, 1, 1)
|
||||
bones/25/rotation = Quaternion(-0.715396, -0.0713077, -0.0634678, 0.692168)
|
||||
bones/25/scale = Vector3(1, 1, 1)
|
||||
bones/27/rotation = Quaternion(-0.60285, -0.00493488, -0.10987, 0.790238)
|
||||
bones/27/scale = Vector3(1, 1, 1)
|
||||
bones/27/rotation = Quaternion(-0.552666, -0.00578557, -0.102839, 0.827013)
|
||||
bones/29/rotation = Quaternion(0.808854, -0.0303334, 0.0651724, 0.583599)
|
||||
bones/31/rotation = Quaternion(0.808854, -0.0303334, 0.0651724, 0.583599)
|
||||
bones/33/rotation = Quaternion(-0.595881, -0.00902341, -0.114833, 0.794769)
|
||||
bones/35/rotation = Quaternion(-0.683106, 0.00415477, -0.110362, 0.721921)
|
||||
bones/33/rotation = Quaternion(-0.544797, -0.00992883, -0.107894, 0.831539)
|
||||
bones/35/rotation = Quaternion(-0.631949, 0.00360511, -0.10278, 0.768156)
|
||||
bones/35/scale = Vector3(1, 1, 1)
|
||||
bones/37/scale = Vector3(1, 1, 1)
|
||||
bones/39/scale = Vector3(1, 1, 1)
|
||||
bones/41/rotation = Quaternion(-0.0150749, 0.942817, 0.332747, 0.0121592)
|
||||
bones/41/rotation = Quaternion(-0.0147808, 0.935856, 0.351866, 0.0120522)
|
||||
bones/41/scale = Vector3(1, 1, 1)
|
||||
bones/43/rotation = Quaternion(-0.015884, 0.718179, -0.69565, -0.00621676)
|
||||
bones/43/scale = Vector3(1, 1, 1)
|
||||
|
@ -989,41 +961,38 @@ bones/64/rotation = Quaternion(-0.706834, -0.000283644, 0.000283644, 0.70738)
|
|||
bones/66/rotation = Quaternion(-0.000385918, -2.26638e-14, 0.000401128, 1)
|
||||
bones/68/rotation = Quaternion(-0.706834, 0.000283644, -0.000283644, 0.70738)
|
||||
bones/70/rotation = Quaternion(-0.707107, 4.67924e-24, 4.67924e-24, 0.707107)
|
||||
bones/70/scale = Vector3(1, 1, 1)
|
||||
bones/73/rotation = Quaternion(1.54543e-08, -1.54543e-08, 0.707107, 0.707107)
|
||||
bones/73/scale = Vector3(1, 1, 1)
|
||||
bones/74/rotation = Quaternion(-0.650662, 0.670483, 0.248436, -0.255678)
|
||||
bones/74/rotation = Quaternion(-0.655403, 0.67477, 0.236545, -0.243269)
|
||||
bones/74/scale = Vector3(1, 1, 1)
|
||||
bones/75/rotation = Quaternion(0.740773, -0.0533107, -0.0768275, 0.665215)
|
||||
bones/75/rotation = Quaternion(0.699318, -0.0562949, -0.0723183, 0.708911)
|
||||
bones/75/scale = Vector3(1, 1, 1)
|
||||
bones/76/rotation = Quaternion(-0.654891, 0.00113056, 0.106335, 0.748204)
|
||||
bones/76/rotation = Quaternion(-0.620872, 0.00141085, 0.101285, 0.77734)
|
||||
bones/76/scale = Vector3(1, 1, 1)
|
||||
bones/77/rotation = Quaternion(-0.430364, -0.0118815, 0.0624521, 0.900414)
|
||||
bones/77/rotation = Quaternion(-0.435511, -0.0113684, 0.0628699, 0.897913)
|
||||
bones/77/scale = Vector3(1, 1, 1)
|
||||
bones/78/rotation = Quaternion(-0.850981, -0.0348439, 0.176754, 0.493331)
|
||||
bones/78/rotation = Quaternion(-0.840143, -0.0366528, 0.173713, 0.512484)
|
||||
bones/78/scale = Vector3(1, 1, 1)
|
||||
bones/82/rotation = Quaternion(-0.847807, -0.0410585, 0.172462, 0.499794)
|
||||
bones/82/rotation = Quaternion(-0.836541, -0.0432875, 0.169133, 0.519346)
|
||||
bones/82/scale = Vector3(1, 1, 1)
|
||||
bones/84/rotation = Quaternion(-0.583833, 0.0928994, 0.0936978, 0.80108)
|
||||
bones/86/rotation = Quaternion(0.993231, 0.0067672, -0.0811647, 0.0828119)
|
||||
bones/86/scale = Vector3(1, 1, 1)
|
||||
bones/88/rotation = Quaternion(0.751058, -0.023723, -0.659159, 0.0293024)
|
||||
bones/88/rotation = Quaternion(0.752011, -0.0101232, -0.658997, 0.00997538)
|
||||
bones/92/rotation = Quaternion(0.855906, 0.0322478, -0.0593455, 0.512701)
|
||||
bones/92/scale = Vector3(1, 1, 1)
|
||||
bones/94/rotation = Quaternion(0.865497, -0.00325922, -0.142898, 0.480088)
|
||||
bones/94/rotation = Quaternion(0.900778, -0.00355158, -0.148657, 0.408028)
|
||||
bones/94/scale = Vector3(1, 1, 1)
|
||||
bones/96/rotation = Quaternion(-0.715396, 0.0713076, 0.0634679, 0.692168)
|
||||
bones/98/rotation = Quaternion(-0.60285, 0.00493486, 0.10987, 0.790238)
|
||||
bones/98/scale = Vector3(1, 1, 1)
|
||||
bones/98/rotation = Quaternion(-0.552666, 0.00578548, 0.102839, 0.827013)
|
||||
bones/100/rotation = Quaternion(0.808854, 0.0303333, -0.0651724, 0.583599)
|
||||
bones/102/rotation = Quaternion(-0.595881, 0.00902348, 0.114833, 0.794769)
|
||||
bones/102/rotation = Quaternion(-0.544797, 0.00992883, 0.107894, 0.831539)
|
||||
bones/102/scale = Vector3(1, 1, 1)
|
||||
bones/104/rotation = Quaternion(0.803479, 0.0249214, -0.0691385, 0.590779)
|
||||
bones/106/rotation = Quaternion(-0.683106, -0.00415475, 0.110362, 0.721921)
|
||||
bones/106/rotation = Quaternion(-0.63195, -0.0036052, 0.10278, 0.768155)
|
||||
bones/106/scale = Vector3(1, 1, 1)
|
||||
bones/108/scale = Vector3(1, 1, 1)
|
||||
bones/110/rotation = Quaternion(0.346017, 0.0755612, -0.0156624, 0.935049)
|
||||
bones/112/rotation = Quaternion(0.0150749, 0.942817, 0.332747, -0.0121591)
|
||||
bones/112/rotation = Quaternion(0.0147809, 0.935856, 0.351866, -0.0120522)
|
||||
bones/112/scale = Vector3(1, 1, 1)
|
||||
bones/114/rotation = Quaternion(0.015884, 0.718179, -0.69565, 0.00621692)
|
||||
bones/114/scale = Vector3(1, 1, 1)
|
||||
|
@ -1039,106 +1008,106 @@ bones/126/rotation = Quaternion(0.993232, 0.00676712, -0.0811637, -0.0828125)
|
|||
bones/126/scale = Vector3(1, 1, 0.999988)
|
||||
|
||||
[node name="Plane_009_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"]
|
||||
transform = Transform3D(0.999992, 2.09212e-05, 0.00393465, -0.000193372, 0.999039, 0.0438305, -0.00392993, -0.0438313, 0.999031, -0.0149336, -0.00523722, 0.0638201)
|
||||
transform = Transform3D(1, 0.000206158, 8.78498e-05, -0.000206515, 0.999994, 0.00382593, -8.71867e-05, -0.00382587, 0.999993, -0.000761032, -0.0110404, 0.00433403)
|
||||
|
||||
[node name="Plane_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"]
|
||||
transform = Transform3D(0.999988, 0.000851974, 0.00472297, -0.00105911, 0.99903, 0.0440337, -0.00468083, -0.0440388, 0.999018, -0.0164187, -0.00364554, 0.0648394)
|
||||
transform = Transform3D(1, 0.000294447, 9.92119e-05, -0.000294819, 0.999993, 0.00383258, -9.82061e-05, -0.00383252, 0.999993, -0.00085783, -0.0108517, 0.0043577)
|
||||
|
||||
[node name="Cube_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"]
|
||||
transform = Transform3D(0.999998, -0.000814268, 0.00199856, 0.000823162, 0.99999, -0.00444019, -0.00199492, 0.00444141, 0.999988, -0.0124917, 0.0307942, 0.0079633)
|
||||
transform = Transform3D(1, 0.000124972, 6.69211e-05, -0.000125058, 1, 0.00107494, -6.69211e-05, -0.00107487, 1, -0.000662804, -0.009021, 0.00150597)
|
||||
|
||||
[node name="Plane_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"]
|
||||
transform = Transform3D(0.99999, -0.000851586, 0.00430872, 0.000606135, 0.9984, 0.056537, -0.00434971, -0.0565344, 0.998391, -0.014354, -0.0376838, 0.0273384)
|
||||
transform = Transform3D(0.999999, 0.000821605, -0.000580385, -0.000819638, 0.999994, 0.00335262, 0.000583053, -0.00335229, 0.999994, 0.000123739, -0.00855058, -0.000601053)
|
||||
|
||||
[node name="Cube_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"]
|
||||
transform = Transform3D(0.999994, -0.000804342, 0.00325334, 0.000776954, 0.999964, 0.00842088, -0.00326001, -0.00841883, 0.999959, -0.0129619, 0.0259795, 0.00934219)
|
||||
transform = Transform3D(1, 0.000126496, 0.000161231, -0.000126898, 0.999998, 0.00247297, -0.000160985, -0.00247297, 0.999997, -0.00069809, -0.00955504, 0.00151777)
|
||||
|
||||
[node name="Plane_011_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"]
|
||||
transform = Transform3D(0.999998, -0.00202592, -0.000765567, 0.00208227, 0.996578, 0.082635, 0.000595528, -0.0826369, 0.996579, 0.0079031, -0.490583, -0.00370407)
|
||||
transform = Transform3D(1, -2.19047e-06, -0.000116075, 2.83122e-06, 0.999982, 0.0060884, 0.000115976, -0.0060883, 0.999981, 0.000818014, -0.0358852, 7.58171e-05)
|
||||
|
||||
[node name="Plane_002_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"]
|
||||
transform = Transform3D(0.999991, 0.00116442, 0.0039253, -0.0013404, 0.998981, 0.0451247, -0.00386875, -0.0451302, 0.998973, -0.0175245, 0.00667512, 0.107941)
|
||||
transform = Transform3D(1, 0.000225633, 0.00017406, -0.000226408, 0.999992, 0.00409883, -0.00017317, -0.00409883, 0.999992, -0.000934839, -0.00991499, 0.00601554)
|
||||
|
||||
[node name="Plane_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"]
|
||||
transform = Transform3D(0.999991, 0.00116442, 0.0039253, -0.0013404, 0.998981, 0.0451247, -0.00386875, -0.0451302, 0.998973, -0.0175245, 0.00667512, 0.107941)
|
||||
transform = Transform3D(1, 0.000225633, 0.00017406, -0.000226408, 0.999992, 0.00409883, -0.00017317, -0.00409883, 0.999992, -0.000934839, -0.00991499, 0.00601554)
|
||||
|
||||
[node name="Cube_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"]
|
||||
transform = Transform3D(0.999994, -0.00108039, 0.00326934, 0.000885151, 0.998249, 0.0591473, -0.00332748, -0.0591445, 0.998243, -0.013489, -0.0437858, 0.0294914)
|
||||
transform = Transform3D(1, 0.000119835, 0.000141762, -0.000120521, 0.999989, 0.00461549, -0.000141233, -0.00461543, 0.999989, -0.000677824, -0.0121667, 0.0018425)
|
||||
|
||||
[node name="Plane_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"]
|
||||
transform = Transform3D(0.999989, -0.000138357, 0.00454922, 0.000532106, 0.996237, -0.0866672, -0.00452008, 0.0866681, 0.996226, -0.0169733, 0.27775, -0.0703726)
|
||||
transform = Transform3D(1, 7.7039e-05, 0.000255093, -7.64206e-05, 0.999997, -0.0025751, -0.000255346, 0.00257501, 0.999997, -0.000894308, 0.00341696, -0.00314045)
|
||||
|
||||
[node name="Cube_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"]
|
||||
transform = Transform3D(0.999999, -0.000225015, -0.00115412, 0.000319723, 0.996573, 0.0827197, 0.0011316, -0.0827204, 0.996572, 0.00737214, -0.49411, -0.18896)
|
||||
transform = Transform3D(1, 4.03151e-05, -5.98246e-05, -4.00189e-05, 0.999985, 0.00545455, 5.99512e-05, -0.00545444, 0.999985, 0.000365496, -0.0333411, -0.00913715)
|
||||
|
||||
[node name="Cube_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"]
|
||||
transform = Transform3D(1, -0.000468372, -0.000767632, 0.000498893, 0.99919, 0.0402278, 0.000748211, -0.0402283, 0.99919, 0.00534201, -0.260237, -0.222053)
|
||||
transform = Transform3D(1, 1.26865e-05, -6.45216e-05, -1.2495e-05, 0.999994, 0.00357547, 6.44797e-05, -0.00357538, 0.999994, 0.00040555, -0.0230109, -0.0100765)
|
||||
|
||||
[node name="Cylinder_002_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"]
|
||||
transform = Transform3D(1, 3.55271e-15, 1.19209e-07, 3.55271e-15, 1, -4.37114e-08, -1.19209e-07, 4.37114e-08, 1, -5.96046e-07, 0, -0.258555)
|
||||
transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.0129018)
|
||||
|
||||
[node name="Cube_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"]
|
||||
transform = Transform3D(1, 8.68511e-10, -2.05857e-08, -8.90793e-10, 1, 2.08616e-07, 2.05097e-08, -2.38535e-07, 1, -1.19209e-07, -1.43051e-06, -0.258555)
|
||||
transform = Transform3D(1, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.0129023)
|
||||
|
||||
[node name="Cube_017_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"]
|
||||
transform = Transform3D(1, 1.36566e-10, 2.20401e-08, -1.22611e-10, 1, 2.38419e-07, -2.18485e-08, -2.38593e-07, 1, 1.19209e-07, -1.90735e-06, -0.258555)
|
||||
transform = Transform3D(1, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.0129042)
|
||||
|
||||
[node name="Cube_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"]
|
||||
transform = Transform3D(1, 1.13687e-13, 0, -2.84217e-14, 1, -4.76837e-07, -1.7053e-13, 4.17233e-07, 1, -9.09153e-13, 4.82798e-06, -0.258557)
|
||||
transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.0129042)
|
||||
|
||||
[node name="Cube_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0" index="0"]
|
||||
surface_material_override/0 = ExtResource("8_dt6e4")
|
||||
|
||||
[node name="Cube_005_Inside_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"]
|
||||
transform = Transform3D(1, 1.13687e-13, 0, -2.84217e-14, 1, -4.76837e-07, -1.7053e-13, 4.17233e-07, 1, -9.09153e-13, 4.82798e-06, -0.258557)
|
||||
transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.0129042)
|
||||
|
||||
[node name="Plane_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"]
|
||||
transform = Transform3D(1, -4.08988e-11, -1.16937e-08, 7.64544e-12, 1, 1.94181e-07, 1.17059e-08, -1.94239e-07, 1, -2.38419e-07, 2.38419e-07, -0.258556)
|
||||
transform = Transform3D(1, 1.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.0129013)
|
||||
|
||||
[node name="Plane_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"]
|
||||
transform = Transform3D(1, 4.08988e-11, 1.16937e-08, -7.64544e-12, 1, 1.94181e-07, -1.17059e-08, -1.94239e-07, 1, 2.38419e-07, 2.38419e-07, -0.258556)
|
||||
transform = Transform3D(1, -1.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.0129013)
|
||||
|
||||
[node name="Cube_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"]
|
||||
transform = Transform3D(1, -2.64698e-23, 6.00639e-31, 2.64698e-23, 1, 1.19209e-07, -4.93937e-30, -1.19209e-07, 1, -1.90621e-29, 0, -0.258555)
|
||||
transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.0129018)
|
||||
|
||||
[node name="Cube_008_Inside_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"]
|
||||
transform = Transform3D(1, -2.64698e-23, 6.00639e-31, 2.64698e-23, 1, 1.19209e-07, -4.93937e-30, -1.19209e-07, 1, -1.90621e-29, 0, -0.258555)
|
||||
transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.0129018)
|
||||
|
||||
[node name="Plane_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"]
|
||||
transform = Transform3D(0.999992, -0.000116974, -0.00398914, 0.000287637, 0.999083, 0.0428218, 0.00398027, -0.0428233, 0.999074, 0.0150754, -0.00410295, 0.0629504)
|
||||
transform = Transform3D(1, -0.000206709, -8.76114e-05, 0.000207081, 0.999994, 0.00382617, 8.69036e-05, -0.00382629, 0.999993, 0.000763655, -0.0110368, 0.00433284)
|
||||
|
||||
[node name="Plane_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"]
|
||||
transform = Transform3D(0.999988, -0.000852287, -0.00472326, 0.00105935, 0.99903, 0.0440321, 0.00468099, -0.0440373, 0.999019, 0.0164201, -0.00364375, 0.0648361)
|
||||
transform = Transform3D(1, -0.00029473, -9.95174e-05, 0.000295117, 0.999994, 0.00383198, 9.85116e-05, -0.00383204, 0.999993, 0.000859976, -0.0108495, 0.00435776)
|
||||
|
||||
[node name="Cube_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"]
|
||||
transform = Transform3D(0.999997, 0.000814037, -0.00199877, -0.000822937, 0.999991, -0.00444035, 0.00199495, 0.00444137, 0.999988, 0.0124919, 0.0307952, 0.00796157)
|
||||
transform = Transform3D(1, -0.000125064, -6.71297e-05, 0.000125172, 1, 0.00107427, 6.7085e-05, -0.00107431, 1, 0.000663757, -0.00901909, 0.00150603)
|
||||
|
||||
[node name="Plane_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"]
|
||||
transform = Transform3D(0.99999, 0.000850573, -0.00430959, -0.000605047, 0.998401, 0.0565369, 0.00435019, -0.0565348, 0.998391, 0.0143561, -0.0376804, 0.0273393)
|
||||
transform = Transform3D(1, -0.000822082, 0.000580952, 0.000820696, 0.999995, 0.00335171, -0.000583977, -0.0033516, 0.999994, -0.000118494, -0.00854659, -0.000601649)
|
||||
|
||||
[node name="Cube_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"]
|
||||
transform = Transform3D(0.999994, 0.000804245, -0.00325343, -0.000776865, 0.999964, 0.00842068, 0.00325988, -0.0084188, 0.999959, 0.0129621, 0.0259804, 0.00934005)
|
||||
transform = Transform3D(1, -0.000126578, -0.000161432, 0.000126988, 0.999997, 0.00247237, 0.000161171, -0.0024724, 0.999997, 0.000699043, -0.0095529, 0.00151801)
|
||||
|
||||
[node name="Plane_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"]
|
||||
transform = Transform3D(0.999998, 0.00202577, 0.000765337, -0.00208217, 0.996578, 0.0826349, -0.000595506, -0.0826369, 0.996579, -0.00790048, -0.490583, -0.0037055)
|
||||
transform = Transform3D(1, 2.11596e-06, 0.000115563, -2.83122e-06, 0.999982, 0.00608825, -0.000115531, -0.00608816, 0.999982, -0.000813961, -0.0358846, 7.62939e-05)
|
||||
|
||||
[node name="Plane_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"]
|
||||
transform = Transform3D(0.999992, -0.00116469, -0.00392569, 0.00134055, 0.998981, 0.0451255, 0.00386893, -0.0451311, 0.998973, 0.0175259, 0.00667405, 0.107941)
|
||||
transform = Transform3D(1, -0.000226066, -0.000174351, 0.000226825, 0.999992, 0.00409877, 0.000173472, -0.00409886, 0.999991, 0.000937223, -0.00991344, 0.00601745)
|
||||
|
||||
[node name="Plane_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"]
|
||||
transform = Transform3D(0.999989, -0.00205362, -0.00414764, 0.00224435, 0.998914, 0.0465514, 0.00404738, -0.0465609, 0.998907, 0.0191858, 0.00455427, 0.108111)
|
||||
transform = Transform3D(1, -0.000273049, -0.000184275, 0.000273809, 0.999992, 0.0041177, 0.00018318, -0.00411779, 0.999992, 0.00101948, -0.00995255, 0.00598025)
|
||||
|
||||
[node name="Cube_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"]
|
||||
transform = Transform3D(0.999994, 0.00108016, -0.00326955, -0.000884973, 0.998249, 0.0591473, 0.00332755, -0.0591448, 0.998243, 0.0134897, -0.043785, 0.0294905)
|
||||
transform = Transform3D(1, -0.0001202, -0.000142343, 0.000120863, 0.999989, 0.00461805, 0.000141807, -0.00461808, 0.999989, 0.000679731, -0.0121709, 0.00184608)
|
||||
|
||||
[node name="Plane_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"]
|
||||
transform = Transform3D(0.99999, 0.000138208, -0.00454924, -0.000532009, 0.996237, -0.0866672, 0.00451997, 0.086668, 0.996227, 0.0169733, 0.277751, -0.070375)
|
||||
transform = Transform3D(1, -7.71582e-05, -0.000255086, 7.65249e-05, 0.999997, -0.00257525, 0.000255331, 0.00257519, 0.999997, 0.000895262, 0.00341755, -0.00313997)
|
||||
|
||||
[node name="Cube_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"]
|
||||
transform = Transform3D(0.999999, 0.000224547, 0.00115383, -0.000319287, 0.996573, 0.0827198, -0.00113151, -0.0827205, 0.996572, -0.00737047, -0.49411, -0.188962)
|
||||
transform = Transform3D(1, -4.06932e-05, 5.93284e-05, 4.03728e-05, 0.999985, 0.00545456, -5.94803e-05, -0.00545445, 0.999985, -0.000362635, -0.0333402, -0.00913572)
|
||||
|
||||
[node name="Cube_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"]
|
||||
transform = Transform3D(1, 0.000468215, 0.00076758, -0.000498793, 0.999191, 0.0402277, -0.000748329, -0.0402284, 0.99919, -0.00534225, -0.260236, -0.222054)
|
||||
transform = Transform3D(1, -1.28094e-05, 6.44024e-05, 1.25932e-05, 0.999994, 0.00357547, -6.43798e-05, -0.00357538, 0.999994, -0.000405073, -0.02301, -0.0100765)
|
||||
|
||||
[node name="Cylinder_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"]
|
||||
transform = Transform3D(1, -3.55271e-15, -1.19209e-07, -3.55271e-15, 1, -4.37114e-08, 1.19209e-07, 4.37114e-08, 1, 5.96046e-07, 0, -0.258555)
|
||||
transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.0129018)
|
||||
|
|
|
@ -45,10 +45,12 @@ func _physics_process(delta: float) -> void:
|
|||
mesh.rotation.y = lerp_angle(
|
||||
mesh.rotation.y, camera_root.rotation.y, delta_factor * TURN_SENSITIVITY
|
||||
)
|
||||
animation_tree["parameters/move_state/transition_request"] = "walk"
|
||||
animation_tree["parameters/walk_space/blend_position"] = input_dir
|
||||
else:
|
||||
animation_tree["parameters/move_state/transition_request"] = "idle"
|
||||
|
||||
animation_tree["parameters/walk_space/blend_position"] = lerp(
|
||||
animation_tree["parameters/walk_space/blend_position"],
|
||||
input_dir,
|
||||
delta_factor * TURN_SENSITIVITY
|
||||
)
|
||||
|
||||
var drag: float = FRICTION if is_on_floor() else AIR_DRAG
|
||||
velocity.x = lerpf(velocity.x, 0.0, delta_factor * drag)
|
||||
|
|
Loading…
Reference in New Issue