From 43acf885b5e166838a6e939e66051e01f51bb65a Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Wed, 31 Jul 2024 00:13:14 -0600 Subject: [PATCH] Player death & respawning --- assets/models/bipedal_mech/mech.tscn | 68 ++++---- .../bipedal_mech/textures/Material.tres | 18 +- .../textures/Material_emissive.png | 4 +- src/game_state.gd | 3 + src/maps/arena_map/arena_map.tscn | 13 +- src/npc/mech_character/mech_character.gd | 3 - src/npc/mech_character/mech_character.tscn | 132 +++++++-------- src/npc/mech_enemy/mech_enemy.tscn | 136 ++++++++------- src/player/player.gd | 52 +++++- src/player/player.tscn | 155 ++++++++++-------- src/player/player_manager.gd | 17 ++ src/player/player_manager.tscn | 6 + src/ui/blinker.gd | 17 ++ src/ui/blinker.tscn | 54 ++++++ 14 files changed, 408 insertions(+), 270 deletions(-) create mode 100644 src/player/player_manager.gd create mode 100644 src/player/player_manager.tscn create mode 100644 src/ui/blinker.gd create mode 100644 src/ui/blinker.tscn diff --git a/assets/models/bipedal_mech/mech.tscn b/assets/models/bipedal_mech/mech.tscn index af05bc8..6e863c7 100644 --- a/assets/models/bipedal_mech/mech.tscn +++ b/assets/models/bipedal_mech/mech.tscn @@ -1434,67 +1434,67 @@ bones/126/rotation = Quaternion(0.993188, 0.0068098, -0.0811602, -0.0833347) 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(1, 0.000171646, 0.000336245, -0.00017418, 0.999972, 0.00767606, -0.000334799, -0.00767606, 0.999971, -0.00170445, -0.0256022, 0.00804394) +transform = Transform3D(1, 0.000172168, 0.00033617, -0.000174701, 0.999972, 0.00767422, -0.000334904, -0.00767437, 0.999971, -0.00170684, -0.0255961, 0.00804955) [node name="Plane_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(1, 0.000310674, 0.000281759, -0.000312805, 0.999971, 0.00762889, -0.00027927, -0.00762892, 0.999971, -0.00179648, -0.0252556, 0.00778341) +transform = Transform3D(1, 0.000311032, 0.000281908, -0.000313237, 0.999971, 0.00762755, -0.00027959, -0.00762764, 0.999971, -0.00179887, -0.02525, 0.00778991) [node name="Cube_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(1, 5.04199e-05, 0.000252739, -5.04013e-05, 1, 0.000134706, -0.000252604, -0.000134677, 1, -0.00151372, -0.01973, 0.000190139) +transform = Transform3D(1, 5.09284e-05, 0.000252679, -5.09508e-05, 1, 0.000133559, -0.000252739, -0.000133589, 1, -0.00151634, -0.0197244, 0.000196427) [node name="Plane_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999999, 0.000938624, -0.000152335, -0.000937581, 0.999977, 0.00676968, 0.000158802, -0.00676954, 0.999977, -0.00103259, -0.0219197, -0.00126839) +transform = Transform3D(0.999998, 0.00093931, -0.000152349, -0.000938162, 0.999977, 0.00676852, 0.000158593, -0.00676852, 0.999977, -0.00103521, -0.0219138, -0.00126171) [node name="Cube_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(1, 5.19305e-05, 0.000418864, -5.36516e-05, 0.999992, 0.00422856, -0.000418514, -0.0042285, 0.999991, -0.00157595, -0.0212994, -0.00012064) +transform = Transform3D(1, 5.24744e-05, 0.000418924, -5.42253e-05, 0.999992, 0.00422746, -0.000418745, -0.00422743, 0.999991, -0.00157905, -0.0212938, -0.000113964) [node name="Plane_011_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(1, -0.000135079, -0.000244529, 0.000138029, 0.999928, 0.0120209, 0.000243001, -0.0120208, 0.999928, 0.00174952, -0.0790679, -0.00366974) +transform = Transform3D(1, -0.000135258, -0.000244191, 0.000138134, 0.999928, 0.0120201, 0.000242511, -0.0120201, 0.999928, 0.00174761, -0.0790654, -0.00366116) [node name="Plane_002_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(1, 0.000289246, 0.000422299, -0.000293493, 0.999949, 0.0100733, -0.000419218, -0.0100735, 0.999949, -0.00198722, -0.0264802, 0.0131886) +transform = Transform3D(1, 0.000289783, 0.000422608, -0.000294045, 0.99995, 0.0100721, -0.000419661, -0.0100722, 0.999949, -0.0019908, -0.0264747, 0.0131953) [node name="Plane_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(1, 0.000289246, 0.000422299, -0.000293493, 0.999949, 0.0100733, -0.000419218, -0.0100735, 0.999949, -0.00198722, -0.0264802, 0.0131886) +transform = Transform3D(1, 0.000289783, 0.000422608, -0.000294045, 0.99995, 0.0100721, -0.000419661, -0.0100722, 0.999949, -0.0019908, -0.0264747, 0.0131953) [node name="Cube_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(1, 4.01735e-05, 0.000366785, -4.3802e-05, 0.999951, 0.0099124, -0.000366196, -0.00991237, 0.999951, -0.00150371, -0.0289387, 0.00122952) +transform = Transform3D(1, 4.0777e-05, 0.000366464, -4.44576e-05, 0.999951, 0.00991109, -0.000366069, -0.00991112, 0.999951, -0.00150609, -0.0289325, 0.00123525) [node name="Plane_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(1, 4.43682e-05, 0.000544474, -4.03523e-05, 0.999973, -0.00734442, -0.000544645, 0.00734439, 0.999973, -0.00189614, 0.00877923, -0.0110412) +transform = Transform3D(1, 4.48152e-05, 0.000545062, -4.08217e-05, 0.999973, -0.0073452, -0.000545397, 0.00734511, 0.999973, -0.0019002, 0.00878352, -0.0110326) [node name="Cube_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -2.16626e-06, -0.000162099, 4.07174e-06, 0.999933, 0.0116276, 0.000162219, -0.0116275, 0.999933, 0.00104117, -0.0774982, -0.0254745) +transform = Transform3D(1, -1.77324e-06, -0.000161373, 3.64892e-06, 0.999933, 0.0116274, 0.000161299, -0.0116275, 0.999932, 0.00103641, -0.0774963, -0.0254664) [node name="Cube_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -4.153e-05, -0.000140451, 4.26082e-05, 0.999972, 0.00751638, 0.000140297, -0.00751629, 0.999972, 0.000940323, -0.0548378, -0.0275402) +transform = Transform3D(1, -4.11676e-05, -0.000139826, 4.22133e-05, 0.999972, 0.00751668, 0.00013947, -0.00751671, 0.999972, 0.000936031, -0.0548387, -0.0275326) [node name="Cylinder_002_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00626576, -0.0335631) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00626576, -0.0335588) [node name="Cube_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, -8.57727e-08, -2.30532e-07, 8.57389e-08, 1, -6.38666e-05, 2.30444e-07, 6.38961e-05, 1, 2.02656e-06, -0.00686145, -0.0340395) +transform = Transform3D(1, -8.48112e-08, -2.29834e-07, 8.47963e-08, 1, -6.33002e-05, 2.29804e-07, 6.33299e-05, 1, 1.90735e-06, -0.00686765, -0.0340366) [node name="Cube_017_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, 8.67633e-08, 2.31928e-07, -8.68065e-08, 1, -6.38963e-05, -2.31957e-07, 6.39558e-05, 1, -2.02656e-06, -0.00686097, -0.0340405) +transform = Transform3D(1, 8.60358e-08, 2.31289e-07, -8.60623e-08, 1, -6.33002e-05, -2.31259e-07, 6.33299e-05, 1, -2.02656e-06, -0.00686765, -0.0340376) [node name="Cube_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000280052, 3.41061e-13, 0.000280052, 1, -9.09154e-13, -0.00445461, -0.0335636) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -0.000280052, 3.97904e-13, 0.000280052, 1, -9.09154e-13, -0.00445461, -0.0335598) [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.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000280052, 3.41061e-13, 0.000280052, 1, -9.09154e-13, -0.00445461, -0.0335636) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -0.000280052, 3.97904e-13, 0.000280052, 1, -9.09154e-13, -0.00445461, -0.0335598) [node name="Plane_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.12976e-10, 1, -0.000279427, 1.02225e-08, 0.000279427, 1, -2.38419e-07, -0.0044589, -0.0335627) +transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.12976e-10, 1, -0.000279427, 1.02807e-08, 0.000279427, 1, -2.38419e-07, -0.0044589, -0.0335588) [node name="Plane_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.12976e-10, 1, -0.000279427, -1.02225e-08, 0.000279427, 1, 2.38419e-07, -0.0044589, -0.0335627) +transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.12976e-10, 1, -0.000279427, -1.02807e-08, 0.000279427, 1, 2.38419e-07, -0.0044589, -0.0335588) [node name="Cube_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, 1.83728e-27, 2.63915e-23, 1, -0.000279144, 5.52974e-27, 0.000279144, 1, -1.16428e-18, -0.0044591, -0.0335627) +transform = Transform3D(1, -2.63915e-23, 1.83728e-27, 2.63915e-23, 1, -0.000279144, 5.52974e-27, 0.000279144, 1, -1.16428e-18, -0.00445909, -0.0335584) [node name="Blackout" type="Node3D" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_008_Material_0" index="1"] visible = false @@ -1541,43 +1541,43 @@ mesh = SubResource("PlaneMesh_fbdqo") skeleton = NodePath("../..") [node name="Cube_008_Inside_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, 1.83728e-27, 2.63915e-23, 1, -0.000279144, 5.52974e-27, 0.000279144, 1, -1.16428e-18, -0.0044591, -0.0335627) +transform = Transform3D(1, -2.63915e-23, 1.83728e-27, 2.63915e-23, 1, -0.000279144, 5.52974e-27, 0.000279144, 1, -1.16428e-18, -0.00445909, -0.0335584) [node name="Plane_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(1, -0.000200033, -0.000463374, 0.000199869, 1, -0.00016135, 0.000463367, 0.000161082, 1, 0.00168777, 0.0181084, -0.00153869) +transform = Transform3D(1, -0.000201374, -0.000461943, 0.000201225, 1, -0.00016126, 0.000461869, 0.000161082, 1, 0.00168562, 0.0181131, -0.00154221) [node name="Plane_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(1, -0.00031428, -0.000500165, 0.000314206, 1, -0.000137866, 0.000500157, 0.000137597, 1, 0.00183105, 0.0183619, -0.00155967) +transform = Transform3D(1, -0.000315189, -0.000498995, 0.000315145, 1, -0.000136644, 0.000498928, 0.000136465, 1, 0.00182891, 0.0183641, -0.00156093) [node name="Cube_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(1, -0.000128053, -0.000245824, 0.000127878, 1, -0.000644311, 0.000245869, 0.000644103, 1, 0.00143242, 0.0182619, -0.00278461) +transform = Transform3D(1, -0.000128854, -0.000244915, 0.000128649, 1, -0.000643209, 0.000244901, 0.000643119, 1, 0.00143027, 0.0182638, -0.00278521) [node name="Plane_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(1, -0.00101423, 0.000178441, 0.00101426, 0.999995, 0.00303133, -0.000181913, -0.00303155, 0.999995, 0.000935793, 0.0149439, -0.00260723) +transform = Transform3D(1, -0.00101484, 0.000179335, 0.00101475, 0.999995, 0.00303157, -0.000182852, -0.00303176, 0.999995, 0.000933409, 0.0149452, -0.0026077) [node name="Cube_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(1, -7.05272e-05, -0.000435404, 6.96853e-05, 0.999998, -0.00187281, 0.000435483, 0.00187272, 0.999998, 0.0015161, 0.0185503, -0.00193286) +transform = Transform3D(1, -7.12276e-05, -0.000434406, 7.03633e-05, 0.999998, -0.00187254, 0.000434421, 0.00187242, 0.999998, 0.00151372, 0.018552, -0.00193381) [node name="Plane_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(1, 0.000187397, 0.000600514, -0.000194743, 0.999926, 0.0121839, -0.000598275, -0.0121841, 0.999926, -0.00353241, -0.0697877, -0.00419807) +transform = Transform3D(1, 0.000187203, 0.000600887, -0.000194564, 0.999926, 0.0121853, -0.000598724, -0.0121854, 0.999926, -0.00353432, -0.0697922, -0.0041976) [node name="Plane_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(1, -0.000294253, -0.000486698, 0.000295013, 0.999999, 0.00154468, 0.000486147, -0.00154483, 0.999999, 0.00201249, 0.0188545, 0.0085609) +transform = Transform3D(1, -0.0002947, -0.000486717, 0.00029546, 0.999999, 0.00154528, 0.000486135, -0.00154543, 0.999999, 0.00201249, 0.0188553, 0.00856328) [node name="Plane_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(1, -0.00043042, -0.00052689, 0.000431255, 0.999999, 0.0016095, 0.000526138, -0.00160977, 0.999999, 0.00228024, 0.0188664, 0.00846195) +transform = Transform3D(1, -0.000430942, -0.000526696, 0.000431776, 0.999999, 0.00161111, 0.000525877, -0.00161141, 0.999999, 0.00227928, 0.018865, 0.00846529) [node name="Cube_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(1, -5.83977e-05, -0.000384562, 6.00442e-05, 0.999991, 0.00428322, 0.000384197, -0.00428331, 0.999991, 0.00144625, 0.0103408, -0.000536442) +transform = Transform3D(1, -5.91055e-05, -0.000383474, 6.07073e-05, 0.999991, 0.00428373, 0.000383072, -0.00428385, 0.999991, 0.00144339, 0.0103423, -0.000537634) [node name="Plane_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(1, -5.57378e-05, -0.00056392, 4.74975e-05, 0.999894, -0.0145701, 0.000564598, 0.01457, 0.999894, 0.00183725, 0.0516097, -0.0137229) +transform = Transform3D(1, -5.62593e-05, -0.000563703, 4.80041e-05, 0.999894, -0.0145698, 0.000564344, 0.0145696, 0.999894, 0.00183654, 0.0516111, -0.0137215) [node name="Cube_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 8.37855e-05, 0.000381212, -8.78386e-05, 0.999944, 0.010555, -0.000380392, -0.0105551, 0.999944, -0.00234699, -0.0668272, -0.0288081) +transform = Transform3D(1, 8.32584e-05, 0.000381461, -8.73003e-05, 0.999944, 0.0105544, -0.000380659, -0.0105543, 0.999944, -0.00234866, -0.0668215, -0.0288053) [node name="Cube_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 4.5737e-05, 0.000197168, -4.61539e-05, 0.999998, 0.00196323, -0.000197166, -0.0019632, 0.999998, -0.00130987, -0.019069, -0.0325289) +transform = Transform3D(1, 4.51011e-05, 0.000197384, -4.55095e-05, 0.999999, 0.00196272, -0.000197393, -0.00196269, 0.999998, -0.00131083, -0.0190638, -0.0325265) [node name="Cylinder_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00626576, -0.0335631) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00626576, -0.0335588) diff --git a/assets/models/bipedal_mech/textures/Material.tres b/assets/models/bipedal_mech/textures/Material.tres index 6d10d1d..3fb78c1 100644 --- a/assets/models/bipedal_mech/textures/Material.tres +++ b/assets/models/bipedal_mech/textures/Material.tres @@ -1,14 +1,13 @@ -[gd_resource type="StandardMaterial3D" load_steps=9 format=3 uid="uid://bjev2d0s7otr6"] +[gd_resource type="StandardMaterial3D" load_steps=7 format=3 uid="uid://bjev2d0s7otr6"] [ext_resource type="Texture2D" uid="uid://ur86mgmormou" path="res://assets/models/bipedal_mech/textures/Material_baseColor.png" id="1_nguj6"] [ext_resource type="Texture2D" uid="uid://c3hksaml3xnwt" path="res://assets/models/bipedal_mech/textures/Material_emissive.png" id="2_ufq0h"] [ext_resource type="Texture2D" uid="uid://du7v7f8mcexde" path="res://assets/models/bipedal_mech/textures/Material_metallicRoughness.png" id="3_gto4b"] [ext_resource type="Shader" path="res://src/shaders/spatial_threshold.gdshader" id="4_1yvu6"] [ext_resource type="Texture2D" uid="uid://dhepf4ms8nk5c" path="res://assets/models/bipedal_mech/textures/Material_normal.png" id="4_dkbq8"] -[ext_resource type="Shader" path="res://src/shaders/outline.gdshader" id="4_qs5st"] -[sub_resource type="ShaderMaterial" id="ShaderMaterial_6c647"] -render_priority = 0 +[sub_resource type="ShaderMaterial" id="ShaderMaterial_yk33k"] +render_priority = 1 shader = ExtResource("4_1yvu6") shader_parameter/color_low = Color(0, 0, 0, 1) shader_parameter/color_hi = Color(1, 1, 1, 1) @@ -16,13 +15,6 @@ shader_parameter/threshold = 0.208 shader_parameter/contrast = 1.0 shader_parameter/offset = 0.0 -[sub_resource type="ShaderMaterial" id="ShaderMaterial_yk33k"] -render_priority = 1 -next_pass = SubResource("ShaderMaterial_6c647") -shader = ExtResource("4_qs5st") -shader_parameter/color = Color(1, 1, 1, 1) -shader_parameter/width = 2.0 - [resource] resource_name = "Material" next_pass = SubResource("ShaderMaterial_yk33k") @@ -34,7 +26,9 @@ metallic_texture_channel = 2 roughness_texture = ExtResource("3_gto4b") roughness_texture_channel = 1 emission_enabled = true -emission_energy_multiplier = 1.9962 +emission = Color(1, 1, 1, 1) +emission_energy_multiplier = 2.0 +emission_operator = 1 emission_texture = ExtResource("2_ufq0h") normal_enabled = true normal_texture = ExtResource("4_dkbq8") diff --git a/assets/models/bipedal_mech/textures/Material_emissive.png b/assets/models/bipedal_mech/textures/Material_emissive.png index cbd3911..3d0fe47 100644 --- a/assets/models/bipedal_mech/textures/Material_emissive.png +++ b/assets/models/bipedal_mech/textures/Material_emissive.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8622905f23dca5e3552646ddee16b33b0a8971e5fd32f3db74912158e0dd55df -size 7434 +oid sha256:4c994bc95b35a86899f5fb6608885c5d20c39dc4d6f5704cd7e45516a5001f50 +size 18724 diff --git a/src/game_state.gd b/src/game_state.gd index b005666..a66b846 100644 --- a/src/game_state.gd +++ b/src/game_state.gd @@ -10,6 +10,9 @@ const AIR_DRAG: float = 0.03 # 100 heat / (5 minutes * 60 frames/second) = about 0.005556 heat/frame const SOLAR_HEAT_RATE: float = 0.005556 +var player_1_structure: int = 3 +var player_2_structure: int = 3 + # Get the gravity from the project settings to be synced with RigidBody nodes. var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity") diff --git a/src/maps/arena_map/arena_map.tscn b/src/maps/arena_map/arena_map.tscn index 3938e3f..86178a2 100644 --- a/src/maps/arena_map/arena_map.tscn +++ b/src/maps/arena_map/arena_map.tscn @@ -1,11 +1,10 @@ -[gd_scene load_steps=30 format=3 uid="uid://drbiyuustse8b"] +[gd_scene load_steps=29 format=3 uid="uid://drbiyuustse8b"] [ext_resource type="Script" path="res://src/maps/arena_map/arena_map.gd" id="1_5ols7"] -[ext_resource type="PackedScene" uid="uid://b35hitnloyak3" path="res://src/player/player.tscn" id="1_tgee4"] [ext_resource type="Material" uid="uid://7a1uvst7oef2" path="res://assets/textures/metal_plate_1k/metal_plate.tres" id="2_ewgwm"] +[ext_resource type="PackedScene" uid="uid://c1tct5fwnv6x3" path="res://src/player/player_manager.tscn" id="2_n8j0g"] [ext_resource type="Shader" path="res://src/shaders/sunny_sky.gdshader" id="2_x74tl"] [ext_resource type="Material" uid="uid://dsc0g1qafw80e" path="res://src/maps/arena_map/metal_09.tres" id="3_jqqt6"] -[ext_resource type="PackedScene" uid="uid://bv8ifwo8yn6h0" path="res://src/npc/mech_enemy/mech_enemy.tscn" id="4_mheuj"] [sub_resource type="FastNoiseLite" id="FastNoiseLite_6sfce"] seed = 2 @@ -132,13 +131,7 @@ _data = { [node name="ArenaMap" type="Node3D"] script = ExtResource("1_5ols7") -[node name="Player" parent="." instance=ExtResource("1_tgee4")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) - -[node name="MechEnemy" parent="." node_paths=PackedStringArray("target") instance=ExtResource("4_mheuj")] -transform = Transform3D(-0.916705, 0, -0.399565, 0, 1, 0, 0.399565, 0, -0.916705, 5.807, 0, 8.08043) -collision_layer = 1 -target = NodePath("../Player") +[node name="PlayerManager" parent="." instance=ExtResource("2_n8j0g")] [node name="Environment" type="Node3D" parent="."] diff --git a/src/npc/mech_character/mech_character.gd b/src/npc/mech_character/mech_character.gd index 10bf2bd..b5f5f0e 100644 --- a/src/npc/mech_character/mech_character.gd +++ b/src/npc/mech_character/mech_character.gd @@ -26,9 +26,6 @@ var _boost_triggered: bool = false @onready var spark_shower: GPUParticles3D = $SparkShower @onready var boost_cooldown_timer: Timer = $BoostCooldownTimer -@onready var _spawn_point: Vector3 = global_position -@onready var _spawn_rotation: Vector3 = global_rotation - func shutdown() -> void: animation_tree["parameters/online_state/transition_request"] = "offline" diff --git a/src/npc/mech_character/mech_character.tscn b/src/npc/mech_character/mech_character.tscn index 9ced7b5..118f9d4 100644 --- a/src/npc/mech_character/mech_character.tscn +++ b/src/npc/mech_character/mech_character.tscn @@ -20,90 +20,90 @@ script = ExtResource("1_0ew1j") transform = Transform3D(0.15, 0, 0, 0, 0.15, 0, 0, 0, 0.15, 0, 0, -0.05) [node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(-1.16428e-18, -0.00741675, 6.46156) +bones/1/position = Vector3(-1.16428e-18, -0.00652992, 6.46847) bones/1/rotation = Quaternion(0.707107, 0, 0, 0.707107) -bones/3/rotation = Quaternion(0.655401, 0.67475, 0.236565, 0.24331) -bones/4/rotation = Quaternion(0.697892, 0.0563569, 0.0721306, 0.71033) -bones/5/rotation = Quaternion(-0.619568, -0.00144757, -0.101097, 0.778404) -bones/6/rotation = Quaternion(-0.434717, 0.0113594, -0.0627387, 0.898307) -bones/7/rotation = Quaternion(-0.841114, 0.0366374, -0.173894, 0.510829) -bones/11/rotation = Quaternion(-0.837514, 0.0433019, -0.169333, 0.517709) -bones/17/rotation = Quaternion(0.751709, 0.0102991, 0.65934, 0.009949) -bones/23/rotation = Quaternion(0.901995, 0.00358873, 0.148809, 0.405276) -bones/27/rotation = Quaternion(-0.551867, -0.00583393, -0.102752, 0.827557) -bones/33/rotation = Quaternion(-0.543989, -0.00997508, -0.107799, 0.832079) -bones/35/rotation = Quaternion(-0.630149, 0.00354853, -0.102509, 0.76967) -bones/41/rotation = Quaternion(-0.0147626, 0.935678, 0.352339, 0.012051) -bones/49/rotation = Quaternion(4.47989e-05, 6.57828e-24, -4.94386e-31, 1) +bones/3/rotation = Quaternion(0.656238, 0.675607, 0.234226, 0.240924) +bones/4/rotation = Quaternion(0.697261, 0.0564221, 0.0720531, 0.710951) +bones/5/rotation = Quaternion(-0.619035, -0.0014507, -0.100998, 0.778841) +bones/6/rotation = Quaternion(-0.437217, 0.0113251, -0.0630917, 0.897069) +bones/7/rotation = Quaternion(-0.838546, 0.036811, -0.173368, 0.515199) +bones/11/rotation = Quaternion(-0.834921, 0.0434624, -0.168801, 0.522039) +bones/17/rotation = Quaternion(0.751763, 0.00921834, 0.659299, 0.00957109) +bones/23/rotation = Quaternion(0.902269, 0.00361016, 0.148878, 0.404639) +bones/27/rotation = Quaternion(-0.549772, -0.00582429, -0.102386, 0.828996) +bones/33/rotation = Quaternion(-0.541887, -0.00996412, -0.107438, 0.833496) +bones/35/rotation = Quaternion(-0.629369, 0.00357528, -0.102356, 0.770328) +bones/41/rotation = Quaternion(-0.0147555, 0.935574, 0.352617, 0.0120505) +bones/49/rotation = Quaternion(-8.88618e-05, 6.57829e-24, -4.94964e-31, 1) bones/50/rotation = Quaternion(0.80296, 2.84212e-07, 3.82883e-07, 0.596033) -bones/51/rotation = Quaternion(0.595791, -0.000239613, 0.000322554, 0.80314) -bones/55/rotation = Quaternion(0.595791, 0.000238847, -0.000321985, 0.80314) +bones/51/rotation = Quaternion(0.595806, -0.000239682, 0.000322647, 0.803128) +bones/55/rotation = Quaternion(0.595806, 0.000238917, -0.000322078, 0.803128) bones/62/rotation = Quaternion(-0.000385918, 2.26111e-14, -0.000401128, 1) bones/66/rotation = Quaternion(-0.000385918, -2.26111e-14, 0.000401128, 1) -bones/74/rotation = Quaternion(-0.656225, 0.67563, 0.234219, -0.240903) -bones/75/rotation = Quaternion(0.698225, -0.0563369, -0.072168, 0.71) -bones/76/rotation = Quaternion(-0.619838, 0.00144325, 0.101136, 0.778184) -bones/77/rotation = Quaternion(-0.437498, -0.0113471, 0.0631354, 0.896929) -bones/78/rotation = Quaternion(-0.838834, -0.0367647, 0.173441, 0.514708) -bones/82/rotation = Quaternion(-0.835214, -0.0434144, 0.16886, 0.521554) -bones/88/rotation = Quaternion(0.751702, -0.0107329, -0.659331, 0.0105967) -bones/94/rotation = Quaternion(0.901428, -0.00360328, -0.148708, 0.406571) -bones/98/rotation = Quaternion(-0.550815, 0.00583603, 0.102578, 0.82828) -bones/102/rotation = Quaternion(-0.542944, 0.00996104, 0.107602, 0.832787) -bones/106/rotation = Quaternion(-0.630542, -0.00355481, 0.102568, 0.76934) -bones/112/rotation = Quaternion(0.0147637, 0.935826, 0.351948, -0.0120607) -bones/122/position = Vector3(3.16409, -0.22593, 0.384995) -bones/122/rotation = Quaternion(0.993229, -0.00676952, 0.0811634, -0.0828417) -bones/126/position = Vector3(-3.16409, -0.186431, 0.387407) -bones/126/rotation = Quaternion(0.993179, 0.00681851, -0.0811594, -0.0834413) +bones/74/rotation = Quaternion(-0.655396, 0.674731, 0.236597, -0.243341) +bones/75/rotation = Quaternion(0.69744, -0.0564108, -0.072073, 0.710774) +bones/76/rotation = Quaternion(-0.619187, 0.00144857, 0.101021, 0.778717) +bones/77/rotation = Quaternion(-0.434613, -0.0113456, 0.0627099, 0.89836) +bones/78/rotation = Quaternion(-0.840581, -0.0366409, 0.173806, 0.511734) +bones/82/rotation = Quaternion(-0.836982, -0.0433042, 0.169239, 0.518598) +bones/88/rotation = Quaternion(0.751766, -0.00901419, -0.659303, 0.00924947) +bones/94/rotation = Quaternion(0.90243, -0.00359788, -0.148911, 0.404269) +bones/98/rotation = Quaternion(-0.551637, 0.00582995, 0.102694, 0.827718) +bones/102/rotation = Quaternion(-0.543752, 0.00998477, 0.107769, 0.832238) +bones/106/rotation = Quaternion(-0.629595, -0.00356049, 0.102404, 0.770137) +bones/112/rotation = Quaternion(0.0147588, 0.935589, 0.352575, -0.0120548) +bones/122/position = Vector3(3.16409, -0.187628, 0.386645) +bones/122/rotation = Quaternion(0.993178, -0.00681884, 0.0811594, -0.0834454) +bones/126/position = Vector3(-3.16409, -0.228638, 0.391794) +bones/126/rotation = Quaternion(0.993229, 0.00676917, -0.0811635, -0.0828376) [node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(1, 7.25389e-05, -0.000196971, -7.12574e-05, 0.999979, 0.00662348, 0.00019753, -0.00662374, 0.999978, 8.01086e-05, -0.0303923, 0.00273496) +transform = Transform3D(1, 1.92225e-05, -2.86549e-05, -1.94311e-05, 0.99999, -0.0046598, 2.84314e-05, 0.00465974, 0.999989, 0.000245333, 0.0184755, -0.0101423) [node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(1, 0.000120655, -0.000205003, -0.000119403, 0.999978, 0.00660649, 0.000205874, -0.00660664, 0.999978, 4.00543e-05, -0.0302877, 0.00277847) +transform = Transform3D(1, 1.41114e-05, -6.70552e-07, -1.42306e-05, 0.999989, -0.00463444, 4.76837e-07, 0.00463444, 0.999989, 0.000227928, 0.0184641, -0.010047) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(1, 4.33251e-06, -7.35074e-05, -4.33996e-06, 1, 2.21282e-05, 7.35968e-05, -2.2307e-05, 1, 4.41074e-05, -0.0251029, -0.00344986) +transform = Transform3D(1, 5.58905e-05, -4.14401e-05, -5.60097e-05, 0.999999, -0.00106518, 4.12315e-05, 0.00106521, 0.999999, 0.000219107, 0.0155748, -0.00660229) [node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999999, 5.93066e-05, -3.67314e-05, -5.92768e-05, 0.999991, 0.00424383, 3.71337e-05, -0.00424402, 0.999991, 4.02927e-05, -0.0275453, -0.00371695) +transform = Transform3D(0.999998, -0.000478819, -0.00132427, 0.000472948, 0.99999, -0.00429207, 0.00132623, 0.00429149, 0.99999, 0.00208402, 0.015906, -0.0103583) [node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(1, 8.34465e-06, -1.91927e-05, -8.2925e-06, 0.999996, 0.00321192, 1.93268e-05, -0.00321203, 0.999995, 2.5034e-05, -0.0263211, -0.00393009) +transform = Transform3D(1, 2.93404e-05, -3.32743e-05, -2.95117e-05, 0.999994, -0.00349957, 3.30359e-05, 0.00349969, 0.999994, 0.000211239, 0.0164267, -0.00607586) [node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(1, 3.04431e-05, -5.42048e-05, -3.02196e-05, 0.999991, 0.0041964, 5.44772e-05, -0.00419644, 0.999991, 0.000313759, -0.033859, -0.00432777) +transform = Transform3D(1, 4.30644e-06, -7.02669e-05, -4.57466e-06, 0.999997, -0.0025157, 7.01007e-05, 0.00251578, 0.999997, 0.000424385, 0.0113978, -0.00584555) [node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(1, 6.38962e-05, -8.93697e-05, -6.3315e-05, 0.999981, 0.00628534, 8.99248e-05, -0.00628543, 0.99998, 4.95911e-05, -0.0316153, 0.000889778) +transform = Transform3D(1, 6.16461e-05, 2.33985e-05, -6.16163e-05, 0.999991, -0.00416636, -2.37785e-05, 0.00416631, 0.999991, 3.50475e-05, 0.0180714, -0.00670433) [node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(1, 6.38962e-05, -8.93697e-05, -6.3315e-05, 0.999981, 0.00628534, 8.99248e-05, -0.00628543, 0.99998, 4.95911e-05, -0.0316153, 0.000889778) +transform = Transform3D(1, 6.16461e-05, 2.33985e-05, -6.16163e-05, 0.999991, -0.00416636, -2.37785e-05, 0.00416631, 0.999991, 3.50475e-05, 0.0180714, -0.00670433) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(1, -2.22623e-05, -3.10242e-05, 2.24113e-05, 0.999992, 0.00400639, 3.10913e-05, -0.00400642, 0.999992, 4.74453e-05, -0.0274675, -0.00377393) +transform = Transform3D(1, 6.09308e-05, -1.42306e-06, -6.09905e-05, 0.999994, -0.00337461, 1.10269e-06, 0.00337458, 0.999994, 0.000115633, 0.0163632, -0.00594687) [node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(1, -5.44637e-06, 5.20274e-05, 5.37932e-06, 0.999999, 0.0015513, -5.18858e-05, -0.00155139, 0.999999, -0.000147343, -0.0220484, -0.00534534) +transform = Transform3D(1, 1.50651e-05, -1.86935e-05, -1.51992e-05, 0.999993, -0.00376809, 1.84849e-05, 0.00376797, 0.999993, 0.000186443, 0.0170807, -0.00628948) [node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, 7.3798e-06, -3.71727e-05, -7.1805e-06, 0.99999, 0.00453497, 3.73501e-05, -0.004535, 0.99999, 0.000232458, -0.0358457, -0.00722027) +transform = Transform3D(1, -2.54046e-05, -2.00341e-05, 2.5291e-05, 0.999995, -0.00315789, 2.00041e-05, 0.00315794, 0.999995, 0.000148296, 0.013998, -0.00649977) [node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -5.90135e-06, -3.16764e-05, 6.04884e-06, 0.999994, 0.003667, 3.18009e-05, -0.00366694, 0.999994, 0.000209093, -0.0310752, -0.00762939) +transform = Transform3D(1, -3.21864e-05, -1.54484e-05, 3.20764e-05, 0.999994, -0.00343218, 1.54493e-05, 0.00343221, 0.999994, 0.000126839, 0.0154983, -0.00661087) [node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00741673, -0.0106354) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00652993, -0.0037303) [node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, 6.874e-08, 4.50728e-07, -6.86196e-08, 1, -0.000258863, -4.50825e-07, 0.000258923, 1, -5.24521e-06, -0.00495362, -0.0102625) +transform = Transform3D(1, 8.43963e-08, 6.8279e-07, -8.43927e-08, 1, -3.01898e-05, -6.82823e-07, 3.02494e-05, 1, -7.86781e-06, -0.00536585, -0.00327206) [node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, -6.77236e-08, -4.49273e-07, 6.75812e-08, 1, -0.000258893, 4.49311e-07, 0.000258923, 1, 5.24521e-06, -0.00495338, -0.0102634) +transform = Transform3D(1, -8.3334e-08, -6.81394e-07, 8.33211e-08, 1, -3.016e-05, 6.81368e-07, 3.02494e-05, 1, 7.86781e-06, -0.00536633, -0.00327206) [node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.05097e-05, 3.41061e-13, 9.05097e-05, 1, -9.09154e-13, -0.00683206, -0.0106363) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000176817, 3.41061e-13, -0.000176817, 1, -9.09154e-13, -0.00767553, -0.00373173) [node name="WeaponSlot" type="Node3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0" index="1"] unique_name_in_owner = true @@ -119,58 +119,58 @@ transform = Transform3D(1, 6.97955e-19, 1.77636e-13, 0, -4.37112e-08, -1, -1.355 visible = false [node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.05097e-05, 3.41061e-13, 9.05097e-05, 1, -9.09154e-13, -0.00683206, -0.0106363) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000176817, 3.41061e-13, -0.000176817, 1, -9.09154e-13, -0.00767553, -0.00373173) [node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.11072e-10, 1, -8.98805e-05, 1.0223e-08, 8.98805e-05, 1, -2.38419e-07, -0.00683689, -0.0106363) +transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.08315e-10, 1, 0.000177441, 1.01894e-08, -0.000177441, 1, -2.38419e-07, -0.00767994, -0.00373077) [node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.11072e-10, 1, -8.98805e-05, -1.0223e-08, 8.98805e-05, 1, 2.38419e-07, -0.00683689, -0.0106363) +transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.08315e-10, 1, 0.000177441, -1.01894e-08, -0.000177441, 1, 2.38419e-07, -0.00767994, -0.00373077) [node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, 5.90388e-28, 2.63915e-23, 1, -8.95977e-05, 1.77423e-27, 8.95977e-05, 1, -1.16428e-18, -0.00683686, -0.0106354) +transform = Transform3D(1, -2.63915e-23, -1.16813e-27, 2.63915e-23, 1, 0.000177724, -3.52226e-27, -0.000177724, 1, -1.16428e-18, -0.00768019, -0.0037303) [node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, 5.90388e-28, 2.63915e-23, 1, -8.95977e-05, 1.77423e-27, 8.95977e-05, 1, -1.16428e-18, -0.00683686, -0.0106354) +transform = Transform3D(1, -2.63915e-23, -1.16813e-27, 2.63915e-23, 1, 0.000177724, -3.52226e-27, -0.000177724, 1, -1.16428e-18, -0.00768019, -0.0037303) [node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(1, -4.17084e-05, 1.8023e-05, 4.17084e-05, 0.999995, -0.00354418, -1.78739e-05, 0.00354412, 0.999994, -0.000111818, 0.0228502, -0.0113088) +transform = Transform3D(1, -0.000135213, 5.16325e-05, 0.00013496, 0.99999, 0.00465542, -5.2318e-05, -0.00465524, 0.99999, -4.43459e-05, -0.0309224, 0.00594956) [node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(1, -6.59674e-05, 1.09896e-05, 6.59823e-05, 0.999995, -0.00352833, -1.07214e-05, 0.00352833, 0.999994, -8.24928e-05, 0.0229053, -0.0113083) +transform = Transform3D(1, -0.000176728, 6.30692e-05, 0.000176355, 0.99999, 0.00466323, -6.39409e-05, -0.00466308, 0.999989, -1.33514e-05, -0.0308593, 0.0059402) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(1, -4.24795e-05, 6.97672e-05, 4.25745e-05, 1, -0.00110072, -6.96927e-05, 0.00110069, 1, -0.00015521, 0.020795, -0.0090524) +transform = Transform3D(1, -6.58818e-05, 2.95937e-05, 6.58445e-05, 1, 0.000158608, -2.96682e-05, -0.00015837, 1, -9.58443e-05, -0.0273978, 0.00152367) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(1, -5.17666e-05, 3.50773e-05, 5.24372e-05, 0.999999, -0.00157777, -3.53828e-05, 0.00157742, 0.999999, -0.000129223, 0.0185224, -0.00765204) +transform = Transform3D(0.999999, 0.000438705, 0.00129071, -0.000440881, 0.999998, 0.00203297, -0.00129022, -0.00203363, 0.999997, -0.00193739, -0.0282348, -0.00356019) [node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(1, 1.11982e-05, 2.00421e-05, -1.11237e-05, 0.999991, -0.0041686, -2.01091e-05, 0.00416854, 0.999991, -0.000125885, 0.0218047, -0.0082643) +transform = Transform3D(1, -6.61984e-05, 1.42008e-05, 6.61165e-05, 0.999994, 0.00358754, -1.45063e-05, -0.00358731, 0.999994, -9.05991e-05, -0.0287197, 0.000870943) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(1, 1.71959e-05, 9.04188e-05, -1.70916e-05, 1, -0.00105101, -9.04948e-05, 0.00105108, 1, -0.000596762, 0.00322855, -0.00813341) +transform = Transform3D(1, -4.88907e-05, 5.27725e-05, 4.87268e-05, 0.999995, 0.00336507, -5.30286e-05, -0.00336497, 0.999995, -0.000314236, -0.0290433, 0.000320435) [node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(1, -2.37375e-05, 1.47857e-05, 2.37972e-05, 0.999991, -0.00437185, -1.47484e-05, 0.00437188, 0.99999, -1.90735e-05, 0.0235865, -0.00753117) +transform = Transform3D(1, -0.000115186, 8.09841e-05, 0.000114605, 0.999975, 0.00708464, -8.18968e-05, -0.00708446, 0.999975, -0.000144005, -0.0354335, 0.00589895) [node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(1, -5.77718e-05, -7.21812e-05, 5.74887e-05, 0.999991, -0.00434172, 7.23861e-05, 0.00434169, 0.999991, 0.000208378, 0.0235746, -0.00724602) +transform = Transform3D(1, -0.000134841, 0.000115264, 0.000134036, 0.999976, 0.00708985, -0.000116304, -0.00708964, 0.999975, -0.000189781, -0.0354502, 0.00577903) [node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(1, 4.14774e-05, 3.44962e-05, -4.13507e-05, 0.999995, -0.00304124, -3.46899e-05, 0.00304118, 0.999995, -0.000151396, 0.0202202, -0.00804758) +transform = Transform3D(1, -6.72117e-05, 1.78218e-05, 6.71297e-05, 0.999993, 0.00391358, -1.81645e-05, -0.00391343, 0.999992, -9.34601e-05, -0.0291542, 0.000943661) [node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(1, 2.601e-05, -5.63711e-05, -2.63602e-05, 0.999979, -0.00652954, 5.61774e-05, 0.00652951, 0.999979, 5.96046e-05, 0.0279099, -0.0103083) +transform = Transform3D(1, -5.17443e-05, -4.61936e-06, 5.17517e-05, 0.999996, 0.00292224, 4.38839e-06, -0.00292212, 0.999996, -5.50747e-05, -0.0270368, 0.000273705) [node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 3.13222e-05, 8.64214e-05, -3.11565e-05, 0.999999, -0.00177029, -8.65118e-05, 0.00177041, 0.999998, -0.000566483, 0.0054327, -0.0130029) +transform = Transform3D(1, -4.41447e-06, 1.12738e-05, 4.36604e-06, 0.999992, 0.00412608, -1.13591e-05, -0.00412598, 0.999992, -7.10487e-05, -0.0327883, -0.000398636) [node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 3.11143e-05, 6.87078e-05, -3.0861e-05, 0.999994, -0.003474, -6.88541e-05, 0.003474, 0.999994, -0.000469685, 0.0148852, -0.0137181) +transform = Transform3D(1, -2.98872e-06, 1.38292e-05, 2.93019e-06, 0.999993, 0.00376365, -1.39074e-05, -0.00376353, 0.999993, -8.72612e-05, -0.0307828, -0.000585556) [node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00741673, -0.0106354) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00652993, -0.0037303) [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) diff --git a/src/npc/mech_enemy/mech_enemy.tscn b/src/npc/mech_enemy/mech_enemy.tscn index b536828..8538af9 100644 --- a/src/npc/mech_enemy/mech_enemy.tscn +++ b/src/npc/mech_enemy/mech_enemy.tscn @@ -24,90 +24,86 @@ max_damage = 100.0 max_structure = 5 [node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(-1.16428e-18, -0.00612062, 6.36862) -bones/1/rotation = Quaternion(0.707107, 0, 0, 0.707107) -bones/3/rotation = Quaternion(0.653965, 0.673558, 0.240109, 0.246977) -bones/4/rotation = Quaternion(0.714616, 0.0552177, 0.0739341, 0.693404) -bones/5/rotation = Quaternion(-0.633737, -0.00124092, -0.103148, 0.76664) -bones/6/rotation = Quaternion(-0.434205, 0.0115766, -0.0627966, 0.898548) -bones/7/rotation = Quaternion(-0.843274, 0.0360795, -0.174587, 0.507057) -bones/11/rotation = Quaternion(-0.839743, 0.0426711, -0.170084, 0.51389) -bones/17/rotation = Quaternion(0.751609, 0.014314, 0.659253, 0.0162747) -bones/23/rotation = Quaternion(0.888393, 0.00330164, 0.146708, 0.435) -bones/27/rotation = Quaternion(-0.57107, -0.00548173, -0.105416, 0.814087) -bones/33/rotation = Quaternion(-0.563379, -0.00957802, -0.110435, 0.818728) -bones/35/rotation = Quaternion(-0.650937, 0.00385254, -0.105644, 0.751735) -bones/41/rotation = Quaternion(-0.0148747, 0.938226, 0.345491, 0.0120869) -bones/49/rotation = Quaternion(0.000148169, 6.57829e-24, -4.93905e-31, 1) -bones/50/rotation = Quaternion(0.80296, 2.84212e-07, 3.82883e-07, 0.596033) -bones/51/rotation = Quaternion(0.595627, -0.000239395, 0.000322259, 0.803261) -bones/55/rotation = Quaternion(0.595627, 0.000238629, -0.00032169, 0.803261) -bones/62/rotation = Quaternion(-0.000385918, 2.26111e-14, -0.000401128, 1) -bones/66/rotation = Quaternion(-0.000385918, -2.26111e-14, 0.000401128, 1) -bones/74/rotation = Quaternion(-0.653488, 0.673034, 0.241446, -0.248361) -bones/75/rotation = Quaternion(0.714219, -0.0552414, -0.0738893, 0.693816) -bones/76/rotation = Quaternion(-0.633454, 0.00124777, 0.103108, 0.766879) -bones/77/rotation = Quaternion(-0.432503, -0.0115743, 0.0625488, 0.899386) -bones/78/rotation = Quaternion(-0.844513, -0.0360248, 0.174826, 0.504912) -bones/82/rotation = Quaternion(-0.840986, -0.0426514, 0.170304, 0.511782) -bones/88/rotation = Quaternion(0.751626, -0.0136282, -0.659273, 0.0152349) -bones/94/rotation = Quaternion(0.889593, -0.00332875, -0.146895, 0.432475) -bones/98/rotation = Quaternion(-0.571633, 0.00548119, 0.10551, 0.813679) -bones/102/rotation = Quaternion(-0.563936, 0.00958859, 0.110545, 0.81833) -bones/106/rotation = Quaternion(-0.650513, -0.0038436, 0.105583, 0.75211) -bones/112/rotation = Quaternion(0.0148955, 0.937734, 0.346826, -0.0120682) -bones/122/position = Vector3(3.16409, -0.195281, 0.386517) -bones/122/rotation = Quaternion(0.993189, -0.00680875, 0.0811603, -0.0833219) -bones/126/position = Vector3(-3.16409, -0.218348, 0.385319) -bones/126/rotation = Quaternion(0.993219, 0.00677926, -0.0811627, -0.0829611) +bones/1/position = Vector3(-1.16428e-18, -0.00663787, 6.29231) +bones/3/rotation = Quaternion(0.652547, 0.672245, 0.243714, 0.250746) +bones/4/rotation = Quaternion(0.726543, 0.0543345, 0.0751952, 0.68083) +bones/5/rotation = Quaternion(-0.643942, -0.00109193, -0.104644, 0.757883) +bones/6/rotation = Quaternion(-0.432506, 0.0117586, -0.0626639, 0.899374) +bones/7/rotation = Quaternion(-0.84641, 0.0355289, -0.175436, 0.501548) +bones/11/rotation = Quaternion(-0.842957, 0.042066, -0.170977, 0.508351) +bones/17/rotation = Quaternion(0.751517, 0.0174765, 0.659142, 0.0211634) +bones/23/rotation = Quaternion(0.878881, 0.00321576, 0.14516, 0.454408) +bones/27/rotation = Quaternion(-0.585773, -0.0052189, -0.107488, 0.803299) +bones/33/rotation = Quaternion(-0.57823, -0.00928012, -0.11248, 0.80803) +bones/35/rotation = Quaternion(-0.66582, 0.00405588, -0.107906, 0.738257) +bones/41/rotation = Quaternion(-0.0149927, 0.939737, 0.341357, 0.0120879) +bones/49/rotation = Quaternion(-7.02198e-05, 6.57829e-24, -4.94868e-31, 1) +bones/51/rotation = Quaternion(0.595812, -0.000239709, 0.000322683, 0.803124) +bones/55/rotation = Quaternion(0.595812, 0.000238943, -0.000322114, 0.803124) +bones/74/rotation = Quaternion(-0.651697, 0.671353, 0.246011, -0.253088) +bones/75/rotation = Quaternion(0.726517, -0.0543364, -0.0751923, 0.680858) +bones/76/rotation = Quaternion(-0.643919, 0.00109224, 0.104641, 0.757904) +bones/77/rotation = Quaternion(-0.429941, -0.0117764, 0.0622872, 0.900629) +bones/78/rotation = Quaternion(-0.848258, -0.0353734, 0.175833, 0.498287) +bones/82/rotation = Quaternion(-0.844827, -0.041922, 0.171375, 0.505114) +bones/88/rotation = Quaternion(0.751528, -0.0171667, -0.659154, 0.0206801) +bones/94/rotation = Quaternion(0.879226, -0.00320471, -0.145224, 0.45372) +bones/98/rotation = Quaternion(-0.587276, 0.00521601, 0.107734, 0.802167) +bones/102/rotation = Quaternion(-0.579729, 0.00929395, 0.112749, 0.806918) +bones/106/rotation = Quaternion(-0.665787, -0.00405554, 0.1079, 0.738288) +bones/112/rotation = Quaternion(0.0149948, 0.939734, 0.341363, -0.0120922) +bones/122/position = Vector3(3.16409, -0.187045, 0.38667) +bones/122/rotation = Quaternion(0.993178, -0.00681964, 0.0811594, -0.0834537) +bones/126/position = Vector3(-3.16409, -0.228447, 0.389736) +bones/126/rotation = Quaternion(0.99323, 0.00676854, -0.0811635, -0.0828304) [node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(0.999999, 0.000356868, 0.00132272, -0.000376076, 0.999895, 0.0145166, -0.00131739, -0.0145171, 0.999894, -0.00553799, 0.00120354, 0.0167531) +transform = Transform3D(0.999997, 0.000494346, 0.00237671, -0.000558197, 0.999637, 0.0269625, -0.00236244, -0.0269638, 0.999634, -0.00991702, -0.00330436, 0.0294954) [node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(0.999999, 0.000513732, 0.00145227, -0.000534981, 0.999892, 0.0146654, -0.00144455, -0.014666, 0.999892, -0.00580239, 0.00121522, 0.0168136) +transform = Transform3D(0.999996, 0.000778884, 0.00259201, -0.000849321, 0.999628, 0.0272536, -0.00256974, -0.0272557, 0.999625, -0.010381, -0.0032928, 0.02955) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(1, -8.44263e-05, 0.000658616, 8.50316e-05, 1, -0.000914499, -0.000658512, 0.000914618, 1, -0.00454187, 0.0124443, -0.00107679) +transform = Transform3D(0.999999, -0.000282494, 0.0011463, 0.00028399, 0.999999, -0.00128751, -0.00114588, 0.00128789, 0.999999, -0.00811505, 0.0171099, -0.00332642) [node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999999, -0.000187904, 0.000921734, 0.000170022, 0.999812, 0.0193995, -0.000925228, -0.0193994, 0.999812, -0.0043447, -0.0109387, 0.00327766) +transform = Transform3D(0.999998, -0.000418305, 0.00166806, 0.000360578, 0.999406, 0.0344502, -0.00168137, -0.0344496, 0.999405, -0.00786233, -0.0232381, 0.00464582) [node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(0.999999, -0.000114612, 0.00121389, 0.000110522, 0.999995, 0.00338477, -0.00121424, -0.00338456, 0.999994, -0.00475955, 0.0107056, -0.000197649) +transform = Transform3D(0.999998, -0.000314511, 0.00211257, 0.000300191, 0.999978, 0.00679365, -0.00211457, -0.00679296, 0.999975, -0.00848794, 0.0139402, -0.00190806) [node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(0.999999, -0.000746667, -0.000853518, 0.000774264, 0.999462, 0.0327718, 0.000828594, -0.0327723, 0.999463, 0.00564504, -0.197151, -0.00950575) +transform = Transform3D(0.999999, -0.00133421, -0.00101003, 0.00138535, 0.998624, 0.0524207, 0.000938823, -0.0524219, 0.998625, 0.00739336, -0.319076, -0.0177884) [node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(0.999999, 0.000589445, 0.00135854, -0.000611886, 0.999862, 0.0166103, -0.00134852, -0.0166111, 0.999861, -0.00625849, 0.00598276, 0.0361257) +transform = Transform3D(0.999997, 0.00086081, 0.00237836, -0.00093092, 0.99956, 0.0296642, -0.00235163, -0.0296664, 0.999557, -0.0110216, 0.00506735, 0.0611384) [node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(0.999999, 0.000589445, 0.00135854, -0.000611886, 0.999862, 0.0166103, -0.00134852, -0.0166111, 0.999861, -0.00625849, 0.00598276, 0.0361257) +transform = Transform3D(0.999997, 0.00086081, 0.00237836, -0.00093092, 0.99956, 0.0296642, -0.00235163, -0.0296664, 0.999557, -0.0110216, 0.00506735, 0.0611384) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(1, -0.00017155, 0.00103948, 0.000148296, 0.999749, 0.0223852, -0.00104298, -0.0223849, 0.999749, -0.00451136, -0.0146173, 0.00479126) +transform = Transform3D(0.999998, -0.000447936, 0.00180603, 0.000376947, 0.999234, 0.0391398, -0.00182206, -0.039139, 0.999232, -0.00804186, -0.0288733, 0.0076077) [node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(0.999999, -9.20966e-05, 0.00162336, 0.000149429, 0.999376, -0.0353305, -0.00161907, 0.0353307, 0.999375, -0.00584579, 0.111894, -0.0353355) +transform = Transform3D(0.999996, -0.000201903, 0.00282245, 0.000367977, 0.998261, -0.0589534, -0.00280551, 0.0589542, 0.998257, -0.0104408, 0.186429, -0.0598373) [node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -6.85249e-05, -0.000531334, 8.44561e-05, 0.99955, 0.0299974, 0.000529037, -0.0299972, 0.99955, 0.00339675, -0.185585, -0.083303) +transform = Transform3D(1, -8.53036e-05, -0.00069287, 0.000119807, 0.998754, 0.0499089, 0.000687853, -0.0499089, 0.998754, 0.00450158, -0.306204, -0.142104) [node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -0.000161252, -0.00039765, 0.000167036, 0.999895, 0.0145195, 0.000395268, -0.0145195, 0.999895, 0.0026989, -0.100167, -0.0920005) +transform = Transform3D(1, -0.000301059, -0.000563472, 0.000315433, 0.999672, 0.0256395, 0.000555676, -0.0256396, 0.999671, 0.00388527, -0.172652, -0.158077) [node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00612062, -0.103577) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00663787, -0.179887) [node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, -9.52794e-08, -2.83145e-07, 9.5272e-08, 1, -5.72802e-05, 2.83007e-07, 5.73098e-05, 1, 2.5034e-06, -0.00687003, -0.104107) +transform = Transform3D(1, 8.97502e-08, 7.72251e-07, -8.97088e-08, 1, -8.0675e-05, -7.72363e-07, 8.07047e-05, 1, -8.70228e-06, -0.00508523, -0.179399) [node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, 9.63134e-08, 2.84483e-07, -9.62532e-08, 1, -5.73994e-05, -2.84521e-07, 5.74291e-05, 1, -2.6226e-06, -0.0068686, -0.104108) +transform = Transform3D(1, -8.87121e-08, -7.70855e-07, 8.86611e-08, 1, -8.0675e-05, 7.70792e-07, 8.07048e-05, 1, 8.70228e-06, -0.00508523, -0.179401) [node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000297248, 3.41061e-13, 0.000297248, 1, -9.09154e-13, -0.00419796, -0.10358) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000139534, 3.41061e-13, -0.000139534, 1, -9.09154e-13, -0.00754225, -0.179889) [node name="VisionCone" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0" index="2" instance=ExtResource("3_m0nb6")] unique_name_in_owner = true @@ -115,58 +111,58 @@ transform = Transform3D(2, 6.81965e-13, 6.82114e-13, -6.82121e-13, 2, 0.00045645 body_offset = Vector3(0, 1, 0) [node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000297248, 3.41061e-13, 0.000297248, 1, -9.09154e-13, -0.00419796, -0.10358) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000139534, 3.41061e-13, -0.000139534, 1, -9.09154e-13, -0.00754225, -0.179889) [node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.13147e-10, 1, -0.000296621, 1.0159e-08, 0.000296621, 1, -2.38419e-07, -0.00420237, -0.103577) +transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.08713e-10, 1, 0.000140157, 1.01779e-08, -0.000140157, 1, -2.38419e-07, -0.00754666, -0.179887) [node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.13147e-10, 1, -0.000296621, -1.0159e-08, 0.000296621, 1, 2.38419e-07, -0.00420237, -0.103577) +transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.08713e-10, 1, 0.000140157, -1.01779e-08, -0.000140157, 1, 2.38419e-07, -0.00754666, -0.179887) [node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, 1.95039e-27, 2.63915e-23, 1, -0.000296338, 5.87041e-27, 0.000296338, 1, -1.16428e-18, -0.00420266, -0.103577) +transform = Transform3D(1, -2.63915e-23, -9.22862e-28, 2.63915e-23, 1, 0.00014044, -2.78354e-27, -0.00014044, 1, -1.16428e-18, -0.00754682, -0.179887) [node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, 1.95039e-27, 2.63915e-23, 1, -0.000296338, 5.87041e-27, 0.000296338, 1, -1.16428e-18, -0.00420266, -0.103577) +transform = Transform3D(1, -2.63915e-23, -9.22862e-28, 2.63915e-23, 1, 0.00014044, -2.78354e-27, -0.00014044, 1, -1.16428e-18, -0.00754682, -0.179887) [node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(0.999999, -0.000334844, -0.00121255, 0.000359222, 0.999797, 0.0201729, 0.00120553, -0.0201734, 0.999796, 0.0055666, -0.0303574, 0.0237074) +transform = Transform3D(0.999997, -0.000593483, -0.00234708, 0.000677034, 0.999361, 0.0357647, 0.00232446, -0.0357663, 0.999358, 0.0100577, -0.050845, 0.0440022) [node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(0.999999, -0.000501126, -0.00125951, 0.000526547, 0.999795, 0.0202537, 0.00124915, -0.0202545, 0.999794, 0.00577092, -0.030282, 0.0235529) +transform = Transform3D(0.999996, -0.000919476, -0.00252715, 0.00101, 0.999351, 0.0360343, 0.00249249, -0.0360368, 0.999348, 0.0105333, -0.0507617, 0.0439574) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(1, 0.00012547, -0.000677362, -0.000125641, 1, -0.00023587, 0.000677362, 0.0002359, 1, 0.00465775, -0.0151176, 0.00127697) +transform = Transform3D(0.999999, 0.00026127, -0.00115386, -0.00026129, 1, -2.49892e-05, 0.00115396, 2.52277e-05, 0.999999, 0.00820827, -0.0247123, 0.0035708) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(1, 0.00020133, -0.000931427, -0.000180751, 0.999771, 0.0214113, 0.000935152, -0.0214114, 0.99977, 0.00446367, -0.0365356, 0.00420821) +transform = Transform3D(0.999999, 0.000373438, -0.00169542, -0.000304148, 0.999187, 0.0403222, 0.00170882, -0.0403219, 0.999185, 0.00798345, -0.0656039, 0.0103545) [node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(0.999999, 0.000120915, -0.00121305, -0.000111356, 0.999969, 0.00788894, 0.00121399, -0.00788879, 0.999968, 0.00486088, -0.0182091, 0.00132179) +transform = Transform3D(0.999998, 0.0002748, -0.00212132, -0.000245452, 0.999904, 0.013818, 0.00212501, -0.0138175, 0.999902, 0.00857782, -0.0300148, 0.0038445) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(1, 0.000701278, 0.000650869, -0.000721961, 0.999474, 0.0324227, -0.000627777, -0.0324232, 0.999474, -0.00458908, -0.202714, -0.00920248) +transform = Transform3D(0.999999, 0.00128171, 0.000983939, -0.00133653, 0.998318, 0.0579532, -0.000907915, -0.0579546, 0.998319, -0.00721049, -0.356336, -0.0107512) [node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(0.999999, -0.000596449, -0.00131429, 0.000626877, 0.999729, 0.0232623, 0.00130006, -0.0232632, 0.999728, 0.00628519, -0.027493, 0.040314) +transform = Transform3D(0.999997, -0.000921354, -0.00229078, 0.00101347, 0.999178, 0.0405373, 0.00225163, -0.0405396, 0.999175, 0.0109401, -0.0461743, 0.0723238) [node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(0.999999, -0.00101313, -0.00134044, 0.00104424, 0.999726, 0.0234087, 0.00131637, -0.0234101, 0.999725, 0.00690222, -0.0273728, 0.0396171) +transform = Transform3D(0.999996, -0.00164142, -0.00234594, 0.00173579, 0.999166, 0.0407985, 0.00227712, -0.0408026, 0.999165, 0.0120275, -0.0459636, 0.0711436) [node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(0.999999, 0.000176504, -0.00103825, -0.000148959, 0.999649, 0.0264959, 0.00104257, -0.0264958, 0.999648, 0.00461221, -0.0429701, 0.0062809) +transform = Transform3D(0.999998, 0.000408098, -0.00181661, -0.000323825, 0.998935, 0.0461282, 0.00183357, -0.0461276, 0.998934, 0.00813437, -0.0727203, 0.0136507) [node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(0.999999, 9.42796e-05, -0.00161859, -0.000142932, 0.999547, -0.0300835, 0.00161505, 0.0300837, 0.999546, 0.00594115, 0.0808766, -0.0336108) +transform = Transform3D(0.999996, 0.000161879, -0.00282765, -0.000308327, 0.998654, -0.0518783, 0.00281555, 0.051879, 0.998649, 0.0105219, 0.141901, -0.0552454) [node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 2.89548e-05, 0.000386197, -4.10229e-05, 0.999511, 0.0312544, -0.00038508, -0.0312541, 0.999511, -0.00252914, -0.196071, -0.0804715) +transform = Transform3D(1, 5.27725e-05, 0.000672734, -9.09343e-05, 0.99838, 0.0568952, -0.000668541, -0.0568949, 0.99838, -0.00435019, -0.350923, -0.133942) [node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 0.000155061, 0.000351008, -0.000161575, 0.999827, 0.0186208, -0.000348049, -0.0186208, 0.999827, -0.00239348, -0.126534, -0.0879874) +transform = Transform3D(1, 0.000261664, 0.000551427, -0.00027949, 0.999467, 0.0326454, -0.000542501, -0.0326454, 0.999467, -0.00377512, -0.217536, -0.150864) [node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00612062, -0.103577) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00663787, -0.179887) [node name="NavigationAgent3D" type="NavigationAgent3D" parent="." index="5"] path_desired_distance = 2.5 diff --git a/src/player/player.gd b/src/player/player.gd index a49e7af..eaa478f 100644 --- a/src/player/player.gd +++ b/src/player/player.gd @@ -1,7 +1,13 @@ -extends MechCharacter +class_name Player extends MechCharacter + +const MAX_HEAT: float = 100.0 +const MAX_DAMAGE: float = 100.0 + +@export var manager: PlayerManager var _heat: float = 0.0 var _damage: float = 0.0 +var _controllable: bool = true @onready var camera_root: ThirdPersonCamera = $CameraRoot @onready var animation_player: AnimationPlayer = $AnimationPlayer @@ -24,21 +30,57 @@ var structure: int: # gdlint: enable=class-definitions-order -func deal_damage(delta: float) -> void: - _damage = clamp(_damage + delta, 0.0, 100.0) +func _ready() -> void: + _heat_meter.value = _heat _damage_meter.value = _damage +func deal_damage(delta: float) -> void: + _damage += delta + _damage_meter.value = _damage + if _damage >= MAX_DAMAGE: + overdamage() + + func deal_heat(delta: float) -> void: - _heat = clamp(_heat + delta, 0.0, 100.0) + _heat += delta _heat_meter.value = _heat + if _heat >= MAX_HEAT: + overheat() func deal_structure(delta: int) -> void: structure += delta +func overheat() -> void: + destructure() + + +func overdamage() -> void: + destructure() + + +func destructure() -> void: + _controllable = false + shutdown() + if structure > 0: + animation_player.play("death") + else: + # TODO game over + print("GAME OVER DUDE") + + +func respawn() -> void: + structure -= 1 + manager.respawn() + + func _physics_process(delta: float) -> void: + if not _controllable: + super.physics_process(Vector3.ZERO, delta) + return + var delta_factor: float = delta * GameState.TARGET_FPS # DEBUG BLOCK {{{ @@ -57,7 +99,7 @@ func _physics_process(delta: float) -> void: deal_damage(1) if Input.is_action_just_pressed("ui_cancel"): - shutdown() + deal_damage(100) # DEBUG BLOCK }}} if is_boosting(): diff --git a/src/player/player.tscn b/src/player/player.tscn index f9764ec..769f6f5 100644 --- a/src/player/player.tscn +++ b/src/player/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://b35hitnloyak3"] +[gd_scene load_steps=8 format=3 uid="uid://b35hitnloyak3"] [ext_resource type="Script" path="res://src/player/player.gd" id="1_h16ke"] [ext_resource type="PackedScene" uid="uid://b4lueyrglqwou" path="res://src/npc/mech_character/mech_character.tscn" id="1_lpmxk"] @@ -34,150 +34,169 @@ tracks/0/keys = { "values": [75.0, 80.0, 75.0] } +[sub_resource type="Animation" id="Animation_tcxmx"] +resource_name = "death" +length = 5.0 +tracks/0/type = "method" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(5), +"transitions": PackedFloat32Array(1), +"values": [{ +"args": [], +"method": &"respawn" +}] +} + [sub_resource type="AnimationLibrary" id="AnimationLibrary_pg8yw"] _data = { "RESET": SubResource("Animation_ycaf1"), -"boost_fov": SubResource("Animation_ss43j") +"boost_fov": SubResource("Animation_ss43j"), +"death": SubResource("Animation_tcxmx") } [node name="Player" instance=ExtResource("1_lpmxk")] script = ExtResource("1_h16ke") [node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(-1.16428e-18, -0.00618742, 6.41329) -bones/3/rotation = Quaternion(0.654986, 0.674457, 0.237509, 0.244318) -bones/4/rotation = Quaternion(0.706913, 0.0557844, 0.0731393, 0.701293) -bones/5/rotation = Quaternion(-0.627239, -0.00133881, -0.102198, 0.772091) -bones/6/rotation = Quaternion(-0.435382, 0.0114528, -0.0629011, 0.897973) -bones/7/rotation = Quaternion(-0.840973, 0.0364274, -0.174004, 0.511038) -bones/11/rotation = Quaternion(-0.837399, 0.043044, -0.169466, 0.517871) -bones/17/rotation = Quaternion(0.751939, 0.0116361, 0.659019, 0.0121094) -bones/23/rotation = Quaternion(0.895213, 0.00343017, 0.147786, 0.420407) -bones/27/rotation = Quaternion(-0.561831, -0.005639, -0.104101, 0.820656) -bones/33/rotation = Quaternion(-0.554056, -0.00975389, -0.109135, 0.825237) -bones/35/rotation = Quaternion(-0.641444, 0.00371666, -0.104204, 0.760051) -bones/41/rotation = Quaternion(-0.0148377, 0.93664, 0.349771, 0.012051) -bones/49/rotation = Quaternion(-0.000145318, 6.57829e-24, -4.95349e-31, 1) -bones/51/rotation = Quaternion(0.595788, -0.000239546, 0.000322463, 0.803141) -bones/55/rotation = Quaternion(0.595788, 0.00023878, -0.000321894, 0.803141) -bones/74/rotation = Quaternion(-0.654055, 0.67352, 0.240048, -0.246903) -bones/75/rotation = Quaternion(0.707715, -0.055733, -0.0732289, 0.700479) -bones/76/rotation = Quaternion(-0.627916, 0.00132869, 0.102297, 0.771527) -bones/77/rotation = Quaternion(-0.432653, -0.0114769, 0.0625088, 0.899318) -bones/78/rotation = Quaternion(-0.843586, -0.0361989, 0.174573, 0.506535) -bones/82/rotation = Quaternion(-0.840053, -0.0428312, 0.170034, 0.513386) -bones/88/rotation = Quaternion(0.751921, -0.0120171, -0.659021, 0.01268) -bones/94/rotation = Quaternion(0.894677, -0.00342178, -0.1477, 0.421575) -bones/98/rotation = Quaternion(-0.564534, 0.00560701, 0.104506, 0.818748) -bones/102/rotation = Quaternion(-0.556778, 0.00973397, 0.109562, 0.823347) -bones/106/rotation = Quaternion(-0.642434, -0.00373075, 0.104354, 0.759193) -bones/112/rotation = Quaternion(0.014844, 0.936792, 0.349365, -0.0120587) -bones/122/position = Vector3(3.16409, -0.190264, 0.386531) -bones/122/rotation = Quaternion(0.993182, -0.00681545, 0.0811597, -0.0834039) -bones/126/position = Vector3(-3.16409, -0.22871, 0.398343) -bones/126/rotation = Quaternion(0.993226, 0.00677256, -0.0811633, -0.0828791) +bones/1/position = Vector3(-1.16428e-18, -0.00736261, 6.23137) +bones/3/rotation = Quaternion(0.651538, 0.671366, 0.246168, 0.253314) +bones/4/rotation = Quaternion(0.736024, 0.0536354, 0.0762232, 0.670508) +bones/5/rotation = Quaternion(-0.65202, -0.001012, -0.105773, 0.750787) +bones/6/rotation = Quaternion(-0.432283, 0.0118443, -0.0627081, 0.899477) +bones/7/rotation = Quaternion(-0.849465, 0.0349998, -0.176451, 0.496034) +bones/11/rotation = Quaternion(-0.846089, 0.0413545, -0.171963, 0.502844) +bones/17/rotation = Quaternion(0.751019, 0.0224343, 0.659277, 0.0286585) +bones/23/rotation = Quaternion(0.870274, 0.00333679, 0.143667, 0.471139) +bones/27/rotation = Quaternion(-0.597042, -0.00502321, -0.109081, 0.794744) +bones/33/rotation = Quaternion(-0.58961, -0.00908983, -0.11401, 0.799549) +bones/35/rotation = Quaternion(-0.677493, 0.00412094, -0.109562, 0.727312) +bones/41/rotation = Quaternion(-0.0150592, 0.941806, 0.335601, 0.0121296) +bones/49/rotation = Quaternion(5.8591e-05, 6.57828e-24, -4.94314e-31, 1) +bones/51/rotation = Quaternion(0.595805, -0.000239629, 0.000322575, 0.803129) +bones/55/rotation = Quaternion(0.595805, 0.000238863, -0.000322006, 0.803129) +bones/74/rotation = Quaternion(-0.650689, 0.67046, 0.248452, -0.255655) +bones/75/rotation = Quaternion(0.735637, -0.0536624, -0.0761795, 0.670936) +bones/76/rotation = Quaternion(-0.651694, 0.00101739, 0.105726, 0.751077) +bones/77/rotation = Quaternion(-0.429605, -0.0118529, 0.0623214, 0.900786) +bones/78/rotation = Quaternion(-0.851592, -0.0349176, 0.176814, 0.492249) +bones/82/rotation = Quaternion(-0.848232, -0.0412715, 0.172375, 0.499085) +bones/88/rotation = Quaternion(0.751041, -0.0219512, -0.6593, 0.0279361) +bones/94/rotation = Quaternion(0.870982, -0.00332511, -0.143792, 0.469791) +bones/98/rotation = Quaternion(-0.598005, 0.00502455, 0.109242, 0.793996) +bones/102/rotation = Quaternion(-0.590566, 0.00910891, 0.114193, 0.798817) +bones/106/rotation = Quaternion(-0.677025, -0.00411375, 0.109492, 0.727758) +bones/112/rotation = Quaternion(0.0150595, 0.941678, 0.335959, -0.0121301) +bones/122/position = Vector3(3.16409, -0.186861, 0.386734) +bones/122/rotation = Quaternion(0.993178, -0.00681981, 0.0811594, -0.0834548) +bones/126/position = Vector3(-3.16409, -0.22685, 0.384834) +bones/126/rotation = Quaternion(0.99323, 0.00676828, -0.0811626, -0.0828282) [node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(1, 0.000202999, 0.000861965, -0.00020729, 0.999988, 0.00499249, -0.000860967, -0.00499254, 0.999987, -0.00349855, 0.00897563, 0.00440395) +transform = Transform3D(0.999993, 0.000270844, 0.00376992, -0.000422731, 0.999186, 0.0403594, -0.0037559, -0.0403607, 0.999178, -0.0134361, -0.0022397, 0.0439675) [node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(0.999999, 0.000292912, 0.000940263, -0.00029771, 0.999987, 0.00508898, -0.00093881, -0.00508916, 0.999986, -0.00365305, 0.00900197, 0.00446671) +transform = Transform3D(0.999991, 0.000966832, 0.00413722, -0.00113446, 0.99917, 0.0407169, -0.0040944, -0.0407211, 0.999162, -0.0144382, -0.00117493, 0.0439205) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(1, -1.03358e-05, 0.00048849, 1.08778e-05, 0.999999, -0.00115164, -0.00048852, 0.00115174, 0.999999, -0.00297284, 0.0133606, -0.00305656) +transform = Transform3D(0.999998, -0.000545016, 0.00173768, 0.000546249, 1, -0.000670731, -0.00173731, 0.000671759, 0.999998, -0.0109332, 0.0280135, -0.00482896) [node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999999, 0.000645489, 0.000237793, -0.000646994, 0.999978, 0.00663122, -0.000233591, -0.00663136, 0.999978, -0.00253105, 0.00659251, -0.00259376) +transform = Transform3D(0.999994, -0.00145505, 0.00283367, 0.0013013, 0.998567, 0.0535092, -0.00290737, -0.0535051, 0.998564, -0.0110188, -0.0385674, 0.0108197) [node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(1, -2.51681e-05, 0.000776246, 2.47583e-05, 1, 0.000521809, -0.000776283, -0.00052163, 0.999999, -0.00308537, 0.0126712, -0.00248957) +transform = Transform3D(0.999996, -0.000556096, 0.00292753, 0.000533059, 0.999969, 0.00788704, -0.00293178, -0.00788534, 0.999965, -0.0113842, 0.0247514, -0.00279021) [node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(1, -0.000363156, -0.000335139, 0.000367984, 0.999891, 0.0147173, 0.000329723, -0.0147173, 0.999892, 0.00253463, -0.0935416, -0.00931263) +transform = Transform3D(0.999998, -0.00184189, -0.000807282, 0.00189368, 0.997573, 0.069598, 0.000677147, -0.0695991, 0.997575, 0.00757813, -0.421586, -0.0208488) [node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(0.999999, 0.00038451, 0.000876922, -0.000391558, 0.999968, 0.00799462, -0.000873819, -0.0079948, 0.999968, -0.00399256, 0.00990522, 0.0178547) +transform = Transform3D(0.999994, 0.00105767, 0.00319152, -0.00117694, 0.999292, 0.0376062, -0.00314942, -0.0376097, 0.999288, -0.0145216, 0.0143656, 0.080409) [node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(0.999999, 0.00038451, 0.000876922, -0.000391558, 0.999968, 0.00799462, -0.000873819, -0.0079948, 0.999968, -0.00399256, 0.00990522, 0.0178547) +transform = Transform3D(0.999994, 0.00105767, 0.00319152, -0.00117694, 0.999292, 0.0376062, -0.00314942, -0.0376097, 0.999288, -0.0145216, 0.0143656, 0.080409) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(1, -5.32195e-05, 0.000676841, 4.56199e-05, 0.999937, 0.0111911, -0.000677422, -0.011191, 0.999937, -0.00294495, -0.00166976, 0.000109673) +transform = Transform3D(0.999996, -0.000905588, 0.00260149, 0.000772372, 0.99871, 0.0507722, -0.00264408, -0.0507699, 0.998707, -0.0108514, -0.0319748, 0.0110567) [node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(0.999999, -2.07797e-05, 0.00100933, 4.2066e-05, 0.999777, -0.0211287, -0.00100867, 0.0211288, 0.999776, -0.00369596, 0.0691516, -0.0224395) +transform = Transform3D(0.999993, -0.000228599, 0.00379287, 0.000529192, 0.99684, -0.0794323, -0.0037627, 0.0794338, 0.996833, -0.0139487, 0.254966, -0.0777888) [node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -2.80272e-05, -0.000189718, 3.04468e-05, 0.999916, 0.0129579, 0.000189292, -0.0129577, 0.999916, 0.00127959, -0.0840512, -0.0505342) +transform = Transform3D(1, -0.000171863, -0.00103944, 0.000243925, 0.997569, 0.0696927, 0.00102494, -0.0696929, 0.997568, 0.00668406, -0.423236, -0.185315) [node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -0.000116524, -0.000189856, 0.000117739, 0.999978, 0.00660428, 0.000189048, -0.00660416, 0.999978, 0.00132203, -0.0491192, -0.0538397) +transform = Transform3D(1, -0.000425305, -0.000756159, 0.000450227, 0.999448, 0.0332237, 0.000741617, -0.033224, 0.999448, 0.00523162, -0.222507, -0.211825) [node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00618744, -0.0589066) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0073626, -0.240833) [node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, 6.61259e-08, 2.23836e-07, -6.6205e-08, 1, 0.000127703, -2.23921e-07, -0.000127673, 1, -2.74181e-06, -0.00625515, -0.058548) +transform = Transform3D(1, 8.32707e-08, 5.03686e-07, -8.31202e-08, 1, -0.00032261, -5.03873e-07, 0.00032264, 1, -5.84126e-06, -0.00431776, -0.24038) [node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, -6.5098e-08, -2.2244e-07, 6.5148e-08, 1, 0.000127733, 2.22349e-07, -0.000127673, 1, 2.74181e-06, -0.00625563, -0.0585489) +transform = Transform3D(1, -8.22622e-08, -5.02348e-07, 8.21161e-08, 1, -0.00032261, 5.02417e-07, 0.00032264, 1, 5.84126e-06, -0.004318, -0.240381) [node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000289768, 3.41061e-13, -0.000289768, 1, -9.09154e-13, -0.00806415, -0.0589085) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000118077, 3.41061e-13, 0.000118077, 1, -9.09154e-13, -0.00659955, -0.240835) [node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"] -transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000289768, 3.41061e-13, -0.000289768, 1, -9.09154e-13, -0.00806415, -0.0589085) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000118077, 3.41061e-13, 0.000118077, 1, -9.09154e-13, -0.00659955, -0.240835) [node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.07207e-10, 1, 0.000290352, 1.02244e-08, -0.000290352, 1, -2.38419e-07, -0.00806856, -0.0589056) +transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.11299e-10, 1, -0.000117465, 1.01563e-08, 0.000117465, 1, -2.38419e-07, -0.00660419, -0.240833) [node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.07207e-10, 1, 0.000290352, -1.02244e-08, -0.000290352, 1, 2.38419e-07, -0.00806856, -0.0589056) +transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.11299e-10, 1, -0.000117465, -1.01563e-08, 0.000117465, 1, 2.38419e-07, -0.00660419, -0.240833) [node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, -1.91089e-27, 2.63915e-23, 1, 0.000290635, -5.75939e-27, -0.000290635, 1, -1.16428e-18, -0.00806847, -0.0589061) +transform = Transform3D(1, -2.63915e-23, 7.71845e-28, 2.63915e-23, 1, -0.000117182, 2.32076e-27, 0.000117182, 1, -1.16428e-18, -0.00660419, -0.240833) [node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, -1.91089e-27, 2.63915e-23, 1, 0.000290635, -5.75939e-27, -0.000290635, 1, -1.16428e-18, -0.00806847, -0.0589061) +transform = Transform3D(1, -2.63915e-23, 7.71845e-28, 2.63915e-23, 1, -0.000117182, 2.32076e-27, 0.000117182, 1, -1.16428e-18, -0.00660419, -0.240833) [node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(1, -0.000339389, -0.000858217, 0.000353485, 0.999864, 0.0165319, 0.000852391, -0.0165321, 0.999863, 0.00373888, -0.0410103, 0.0266867) +transform = Transform3D(0.999994, -0.000320703, -0.00345896, 0.000494376, 0.998734, 0.050325, 0.00343836, -0.0503263, 0.998727, 0.0133188, -0.0524864, 0.056792) [node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(1, -0.000490695, -0.00088197, 0.000505269, 0.999863, 0.016637, 0.000873618, -0.0166373, 0.999862, 0.00390911, -0.0409135, 0.0266189) +transform = Transform3D(0.999992, -0.00102298, -0.00387646, 0.00121805, 0.998716, 0.0506645, 0.00381967, -0.0506689, 0.998708, 0.0143678, -0.0514237, 0.0570697) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(1, 5.27874e-06, -0.000508666, -5.35324e-06, 1, -9.50098e-05, 0.000508592, 9.5129e-05, 1, 0.00310087, -0.0284387, 0.0087409) +transform = Transform3D(0.999998, 0.000553004, -0.0017409, -0.000551961, 1, 0.000596449, 0.00174122, -0.00059551, 0.999998, 0.0110166, -0.0156508, 4.72069e-05) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(1, -0.000666022, -0.000294223, 0.000670984, 0.999885, 0.0151952, 0.000283599, -0.0151956, 0.999885, 0.00268269, -0.0393445, 0.00849652) +transform = Transform3D(0.999995, 0.00143272, -0.00282777, -0.00126272, 0.998255, 0.0590396, 0.00290702, -0.0590359, 0.998251, 0.0110953, -0.0820196, 0.0143398) [node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(1, -1.31801e-05, -0.000817157, 1.94386e-05, 0.99997, 0.007714, 0.000816934, -0.007714, 0.99997, 0.00321484, -0.0313751, 0.00812769) +transform = Transform3D(0.999996, 0.000526905, -0.00292153, -0.000482544, 0.999885, 0.0151652, 0.00292914, -0.0151637, 0.999881, 0.011457, -0.0210674, 0.000866413) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(1, 0.000348881, 0.000360562, -0.000357017, 0.999742, 0.0227085, -0.000352656, -0.0227087, 0.999742, -0.00274682, -0.144682, 0.00143147) +transform = Transform3D(0.999998, 0.00178637, 0.000763737, -0.00183843, 0.997206, 0.0746853, -0.000628234, -0.0746866, 0.997207, -0.00724745, -0.456081, -0.0150957) [node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(1, -0.000496402, -0.000852097, 0.000513405, 0.999798, 0.0200776, 0.000841882, -0.0200781, 0.999798, 0.00409889, -0.0428442, 0.0361161) +transform = Transform3D(0.999995, -0.00109495, -0.00310612, 0.00124346, 0.998837, 0.0482108, 0.00304965, -0.0482145, 0.998832, 0.0144379, -0.03793, 0.0884684) [node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(1, -0.000769943, -0.000844344, 0.000786781, 0.999796, 0.0201958, 0.000828553, -0.0201964, 0.999796, 0.00445151, -0.0428234, 0.0356195) +transform = Transform3D(0.999993, -0.00194001, -0.00326074, 0.00209601, 0.998819, 0.0485438, 0.00316269, -0.0485504, 0.998816, 0.015898, -0.0378579, 0.087142) [node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(1, 1.73151e-05, -0.000710741, -3.69549e-06, 0.999815, 0.0192455, 0.00071083, -0.0192456, 0.999815, 0.00306511, -0.0468369, 0.0110648) +transform = Transform3D(0.999996, 0.000874102, -0.00260099, -0.000722803, 0.998338, 0.0576186, 0.00264698, -0.0576165, 0.998335, 0.0109327, -0.077161, 0.0149565) [node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(1, -1.85892e-05, -0.00106738, 1.77324e-06, 0.999877, -0.0157112, 0.00106745, 0.0157112, 0.999876, 0.00387168, 0.0295933, -0.0138445) +transform = Transform3D(0.999993, 0.000201866, -0.00377585, -0.000470586, 0.997455, -0.0713006, 0.00375181, 0.0713018, 0.997448, 0.0139906, 0.206266, -0.0751367) [node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 3.7048e-06, 0.000234449, -8.79727e-06, 0.999768, 0.021536, -0.000234364, -0.0215359, 0.999768, -0.00154114, -0.138407, -0.0429339) +transform = Transform3D(1, 0.00014629, 0.000980546, -0.000220321, 0.997114, 0.0759154, -0.000966636, -0.0759155, 0.997114, -0.00630021, -0.463669, -0.176894) [node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 8.65051e-05, 0.000230419, -8.98417e-05, 0.999898, 0.014316, -0.000229206, -0.0143159, 0.999898, -0.00155854, -0.0986816, -0.0470004) +transform = Transform3D(1, 0.000393377, 0.000718348, -0.000421965, 0.999191, 0.040217, -0.000701974, -0.0402173, 0.999191, -0.00496173, -0.26729, -0.2042) [node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00618744, -0.0589066) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0073626, -0.240833) [node name="CameraRoot" type="Node3D" parent="." index="6"] transform = Transform3D(1, 0, 0, 0, 0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 2, 0) diff --git a/src/player/player_manager.gd b/src/player/player_manager.gd new file mode 100644 index 0000000..686ac3e --- /dev/null +++ b/src/player/player_manager.gd @@ -0,0 +1,17 @@ +class_name PlayerManager extends Node3D + +@onready var player_scene: PackedScene = load("res://src/player/player.tscn") +var _spawned: Player + + +func _ready() -> void: + respawn() + + +func respawn() -> void: + if _spawned: + _spawned.queue_free() + _spawned = player_scene.instantiate() + _spawned.manager = self + add_child(_spawned) + _spawned.reparent(self) diff --git a/src/player/player_manager.tscn b/src/player/player_manager.tscn new file mode 100644 index 0000000..ba0f6bd --- /dev/null +++ b/src/player/player_manager.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://c1tct5fwnv6x3"] + +[ext_resource type="Script" path="res://src/player/player_manager.gd" id="1_emn6x"] + +[node name="PlayerManager" type="Node3D"] +script = ExtResource("1_emn6x") diff --git a/src/ui/blinker.gd b/src/ui/blinker.gd new file mode 100644 index 0000000..d3e1af7 --- /dev/null +++ b/src/ui/blinker.gd @@ -0,0 +1,17 @@ +class_name Blinker extends Container + +@export var speed: float: + set(value): + animation_player.speed_scale = value + get: + return animation_player.speed_scale + +@onready var animation_player: AnimationPlayer = $AnimationPlayer + + +func start() -> void: + animation_player.play("blink") + + +func stop() -> void: + animation_player.stop() diff --git a/src/ui/blinker.tscn b/src/ui/blinker.tscn new file mode 100644 index 0000000..e2144e1 --- /dev/null +++ b/src/ui/blinker.tscn @@ -0,0 +1,54 @@ +[gd_scene load_steps=5 format=3 uid="uid://p5j0fiaefkhw"] + +[ext_resource type="Script" path="res://src/ui/blinker.gd" id="1_o3xfe"] + +[sub_resource type="Animation" id="Animation_36pgo"] +resource_name = "blink" +loop_mode = 1 +step = 0.25 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.25, 0.75), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [true, false, true] +} + +[sub_resource type="Animation" id="Animation_mo2jf"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_r8r3g"] +_data = { +"RESET": SubResource("Animation_mo2jf"), +"blink": SubResource("Animation_36pgo") +} + +[node name="Blinker" type="Container"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_o3xfe") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_r8r3g") +}