diff --git a/assets/models/bipedal_mech/mech.tscn b/assets/models/bipedal_mech/mech.tscn index 23a6aba..f03ce21 100644 --- a/assets/models/bipedal_mech/mech.tscn +++ b/assets/models/bipedal_mech/mech.tscn @@ -1434,67 +1434,67 @@ bones/126/rotation = Quaternion(0.993232, 0.00676712, -0.0811637, -0.0828125) bones/126/scale = Vector3(1, 1, 0.999988) [node name="Plane_009_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(0.999992, 1.14143e-05, 0.00398829, -0.000182971, 0.999076, 0.0430122, -0.00398405, -0.0430127, 0.999067, -0.0147908, -0.00398433, 0.0634828) +transform = Transform3D(0.999992, 1.18464e-05, 0.00398814, -0.000183374, 0.999075, 0.043011, -0.00398397, -0.0430113, 0.999067, -0.0147893, -0.00398016, 0.063484) [node name="Plane_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(0.999988, 0.00083825, 0.00479174, -0.00104566, 0.999055, 0.0434586, -0.00475073, -0.0434631, 0.999044, -0.0162842, -0.00258946, 0.0647548) +transform = Transform3D(0.999988, 0.000837758, 0.0047924, -0.0010453, 0.999055, 0.0434578, -0.00475154, -0.0434623, 0.999044, -0.0162823, -0.00258791, 0.0647591) [node name="Cube_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(0.999998, -0.000816131, 0.00198866, 0.000825226, 0.999989, -0.00455546, -0.00198488, 0.0045571, 0.999988, -0.0123038, 0.031523, 0.00813341) +transform = Transform3D(0.999998, -0.000815943, 0.00198871, 0.000824973, 0.999989, -0.0045564, -0.00198503, 0.00455804, 0.999988, -0.0123024, 0.0315264, 0.00813577) [node name="Plane_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999981, -0.000229761, 0.00606808, -0.000107408, 0.99846, 0.0554785, -0.00607133, -0.0554782, 0.998442, -0.0166836, -0.0336399, 0.0327554) +transform = Transform3D(0.999981, -0.000229433, 0.00606829, -0.00010772, 0.99846, 0.055478, -0.00607166, -0.0554775, 0.998442, -0.0166824, -0.0336364, 0.0327582) [node name="Cube_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(0.999995, -0.000801116, 0.00322726, 0.000774987, 0.999967, 0.00810158, -0.0032336, -0.00809896, 0.999962, -0.0127666, 0.0268009, 0.00950098) +transform = Transform3D(0.999995, -0.0008009, 0.00322741, 0.000774704, 0.999967, 0.00810096, -0.00323384, -0.00809836, 0.999962, -0.0127654, 0.0268042, 0.0095036) [node name="Plane_011_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(0.999998, -0.00201489, -0.00078002, 0.00207213, 0.996628, 0.0820233, 0.000612156, -0.0820246, 0.99663, 0.00795698, -0.486862, -0.0033865) +transform = Transform3D(0.999998, -0.0020144, -0.000780414, 0.00207159, 0.996628, 0.0820237, 0.00061252, -0.0820249, 0.99663, 0.00795913, -0.48686, -0.00338554) [node name="Plane_002_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(0.999992, 0.00113432, 0.00385712, -0.00130694, 0.998984, 0.0450605, -0.00380204, -0.0450652, 0.998977, -0.0171733, 0.00641978, 0.107949) +transform = Transform3D(0.999992, 0.00113475, 0.00385647, -0.00130744, 0.998984, 0.04506, -0.00380144, -0.0450647, 0.998977, -0.0171704, 0.00642323, 0.107949) [node name="Plane_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(0.999992, 0.00113432, 0.00385712, -0.00130694, 0.998984, 0.0450605, -0.00380204, -0.0450652, 0.998977, -0.0171733, 0.00641978, 0.107949) +transform = Transform3D(0.999992, 0.00113475, 0.00385647, -0.00130744, 0.998984, 0.04506, -0.00380144, -0.0450647, 0.998977, -0.0171704, 0.00642323, 0.107949) [node name="Cube_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(0.999994, -0.00109044, 0.00321407, 0.00089892, 0.998258, 0.0589995, -0.00327272, -0.0589963, 0.998253, -0.0131984, -0.0437533, 0.0298612) +transform = Transform3D(0.999994, -0.00108981, 0.00321277, 0.000898346, 0.998258, 0.0589991, -0.00327148, -0.0589958, 0.998253, -0.0131938, -0.0437496, 0.0298591) [node name="Plane_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(0.99999, -0.000143871, 0.00447588, 0.000528954, 0.996282, -0.0861457, -0.0044468, 0.0861471, 0.996272, -0.0166466, 0.276345, -0.0696459) +transform = Transform3D(0.99999, -0.000143558, 0.00447536, 0.000528552, 0.996282, -0.0861456, -0.00444637, 0.0861471, 0.996272, -0.016644, 0.276347, -0.0696445) [node name="Cube_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -0.000244843, -0.00113988, 0.000337277, 0.99665, 0.0817876, 0.00111611, -0.081788, 0.996649, 0.00730324, -0.488713, -0.187578) +transform = Transform3D(0.999999, -0.000244368, -0.00114027, 0.0003368, 0.99665, 0.0817879, 0.00111645, -0.0817881, 0.996649, 0.00730634, -0.488712, -0.187575) [node name="Cube_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -0.000487599, -0.000761256, 0.000517584, 0.999205, 0.0398661, 0.000741296, -0.0398665, 0.999205, 0.00531697, -0.257976, -0.220087) +transform = Transform3D(1, -0.000487176, -0.000761682, 0.000517148, 0.999205, 0.0398657, 0.000741643, -0.039866, 0.999205, 0.00531936, -0.257972, -0.220084) [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, -0.256213) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.256209) [node name="Cube_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.256213) +transform = Transform3D(1, 7.18785e-10, -2.03527e-08, -7.31035e-10, 1, -1.49128e-07, 2.02767e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.256209) [node name="Cube_017_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.256215) +transform = Transform3D(1, 3.1531e-10, 2.16907e-08, -3.26025e-10, 1, -1.19326e-07, -2.17319e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.256211) [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, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.256215) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -9.23872e-07, 3.97904e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.256211) [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, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.256215) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -9.23872e-07, 3.97904e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.256211) [node name="Plane_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.256212) +transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.10134e-10, 1, -2.82831e-07, 1.02508e-08, 2.82773e-07, 1, -2.38419e-07, 0, -0.256208) [node name="Plane_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.256212) +transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.10134e-10, 1, -2.82831e-07, -1.02508e-08, 2.82773e-07, 1, 2.38419e-07, 0, -0.256208) [node name="Cube_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.256213) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.256209) [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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.256213) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.256209) [node name="Plane_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(0.999992, -7.88569e-05, -0.0040266, 0.000249088, 0.999106, 0.0423044, 0.00401965, -0.042305, 0.999097, 0.0148904, -0.00318646, 0.0628746) +transform = Transform3D(0.999992, -7.89613e-05, -0.00402666, 0.000249222, 0.999106, 0.0423049, 0.0040197, -0.0423056, 0.999097, 0.0148888, -0.00318551, 0.0628779) [node name="Plane_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(0.999988, -0.000838131, -0.00479205, 0.00104555, 0.999056, 0.0434571, 0.0047511, -0.0434616, 0.999044, 0.0162849, -0.00258815, 0.0647538) +transform = Transform3D(0.999988, -0.000838012, -0.00479259, 0.00104551, 0.999056, 0.043456, 0.00475169, -0.0434606, 0.999044, 0.0162835, -0.00258601, 0.0647573) [node name="Cube_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(0.999998, 0.000816025, -0.00198869, -0.00082507, 0.999989, -0.00455569, 0.00198495, 0.00455743, 0.999988, 0.0123034, 0.0315242, 0.00813329) +transform = Transform3D(0.999998, 0.000815792, -0.00198883, -0.000824824, 0.99999, -0.00455645, 0.00198513, 0.00455801, 0.999988, 0.0123022, 0.0315269, 0.00813586) [node name="Plane_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(0.999982, 0.000229344, -0.00606812, 0.000108361, 0.99846, 0.0554778, 0.00607103, -0.0554778, 0.998442, 0.0166886, -0.0336366, 0.032757) +transform = Transform3D(0.999982, 0.000230029, -0.00606886, 0.00010772, 0.99846, 0.0554776, 0.00607184, -0.0554775, 0.998442, 0.0166881, -0.033637, 0.0327617) [node name="Cube_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(0.999995, 0.000801176, -0.00322718, -0.000774994, 0.999967, 0.00810137, 0.00323354, -0.00809869, 0.999962, 0.0127661, 0.0268018, 0.00950074) +transform = Transform3D(0.999994, 0.000800915, -0.00322742, -0.000774719, 0.999967, 0.00810099, 0.00323383, -0.00809839, 0.999962, 0.0127652, 0.0268044, 0.0095036) [node name="Plane_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(0.999998, 0.00201494, 0.000779855, -0.0020721, 0.996628, 0.0820233, -0.000611966, -0.0820247, 0.99663, -0.00795507, -0.486861, -0.00338554) +transform = Transform3D(0.999998, 0.00201438, 0.000780202, -0.00207154, 0.996628, 0.0820235, -0.000612314, -0.082025, 0.99663, -0.0079565, -0.486859, -0.00338411) [node name="Plane_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(0.999992, -0.00113435, -0.00385742, 0.00130706, 0.998983, 0.0450616, 0.00380236, -0.0450665, 0.998977, 0.0171745, 0.00641823, 0.107953) +transform = Transform3D(0.999992, -0.00113484, -0.00385683, 0.00130753, 0.998983, 0.0450626, 0.00380176, -0.0450673, 0.998977, 0.0171721, 0.00641882, 0.107955) [node name="Plane_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(0.99999, -0.00201786, -0.00409082, 0.00220364, 0.998943, 0.0459306, 0.00399379, -0.0459392, 0.998937, 0.0188513, 0.00542939, 0.107337) +transform = Transform3D(0.99999, -0.00201854, -0.00408963, 0.0022043, 0.998943, 0.045931, 0.00399262, -0.0459396, 0.998936, 0.0188479, 0.00543177, 0.107337) [node name="Cube_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(0.999994, 0.00109045, -0.00321423, -0.000898905, 0.998257, 0.0589999, 0.00327294, -0.0589968, 0.998253, 0.0131981, -0.0437536, 0.0298622) +transform = Transform3D(0.999994, 0.00108977, -0.00321295, -0.000898294, 0.998258, 0.0589993, 0.00327168, -0.0589961, 0.998253, 0.0131943, -0.0437495, 0.0298598) [node name="Plane_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(0.99999, 0.00014393, -0.00447571, -0.000528969, 0.996283, -0.0861458, 0.00444666, 0.0861473, 0.996272, 0.0166466, 0.276345, -0.0696459) +transform = Transform3D(0.99999, 0.00014355, -0.00447521, -0.000528522, 0.996283, -0.0861458, 0.00444623, 0.0861473, 0.996272, 0.016644, 0.276348, -0.0696449) [node name="Cube_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 0.000244623, 0.00113975, -0.000337018, 0.99665, 0.0817876, -0.00111598, -0.081788, 0.996649, -0.00730252, -0.488712, -0.187578) +transform = Transform3D(0.999999, 0.000244144, 0.00114004, -0.000336559, 0.99665, 0.0817879, -0.00111624, -0.0817881, 0.996649, -0.00730491, -0.488712, -0.187575) [node name="Cube_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 0.00048765, 0.000761302, -0.000517605, 0.999205, 0.0398661, -0.000741316, -0.0398665, 0.999205, -0.00531769, -0.257976, -0.220087) +transform = Transform3D(1, 0.000487167, 0.0007617, -0.000517142, 0.999205, 0.0398657, -0.000741663, -0.039866, 0.999205, -0.00531983, -0.257971, -0.220085) [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, -0.256213) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.256209) diff --git a/src/effects/glint/glint.tscn b/src/effects/glint/glint.tscn index f840333..cdc4267 100644 --- a/src/effects/glint/glint.tscn +++ b/src/effects/glint/glint.tscn @@ -16,6 +16,33 @@ shader_parameter/outline_width = 0.03 material = SubResource("ShaderMaterial_puof4") size = Vector2(4, 4) +[sub_resource type="Animation" id="Animation_y26tx"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Mesh:scale") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector3(1, 1, 1)] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("Mesh:mesh:material:shader_parameter/rotation") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [0.0] +} + [sub_resource type="Animation" id="Animation_50few"] resource_name = "grow" length = 2.0 @@ -44,33 +71,6 @@ tracks/1/keys = { "values": [0.0, 3.14, 6.28, 9.42] } -[sub_resource type="Animation" id="Animation_y26tx"] -length = 0.001 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("Mesh:scale") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [Vector3(1, 1, 1)] -} -tracks/1/type = "value" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath("Mesh:mesh:material:shader_parameter/rotation") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [0.0] -} - [sub_resource type="AnimationLibrary" id="AnimationLibrary_5be8s"] _data = { "RESET": SubResource("Animation_y26tx"), diff --git a/src/maps/arena_map/arena_map.tscn b/src/maps/arena_map/arena_map.tscn index 62c5471..17e372b 100644 --- a/src/maps/arena_map/arena_map.tscn +++ b/src/maps/arena_map/arena_map.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=29 format=3 uid="uid://drbiyuustse8b"] +[gd_scene load_steps=31 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://1jess8uo751x" path="res://src/player/player.tscn" id="1_tgee4"] @@ -6,6 +6,7 @@ [ext_resource type="PackedScene" uid="uid://2vetjvn3w0si" path="res://src/npc/dummy/dummy.tscn" id="2_stkni"] [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 @@ -36,6 +37,10 @@ background_mode = 2 sky = SubResource("Sky_7lp20") glow_enabled = true +[sub_resource type="NavigationMesh" id="NavigationMesh_ltpuv"] +vertices = PackedVector3Array(10.75, -4.5, -68.75, 5, -4.5, -69.5, -5, -4.5, -69.5, -9.25, -4.5, -11, -9, -4.5, -10, 9, -4.5, -10, -9.25, -4.5, -11, 9, -4.5, -10, 9.25, -4.5, -11, 10.75, -4.5, -68.75, -5, -4.5, -69.5, -10.75, -4.5, -68.75, 9.25, -4.5, -11, 10.25, -4.5, -11, 10.75, -4.5, -68.75, -10.75, -4.5, -68.75, -10.25, -4.5, -11, -9.25, -4.5, -11, -15.25, -4.5, -15.25, -10.5, -4.5, -11, -10.25, -4.5, -11, -15.25, -4.5, -16.25, -15.25, -4.5, -16.25, -10.25, -4.5, -11, -10.75, -4.5, -68.75, -15.5, -4.5, -67.75, 10.25, -4.5, -11, 10.5, -4.5, -11, 15.25, -4.5, -15.25, 15.25, -4.5, -16.25, 15.25, -4.5, -16.25, 15.5, -4.5, -67.75, 10.75, -4.5, -68.75, 10.25, -4.5, -11, -15.5, -4.5, -67.75, -20.25, -4.5, -66.75, -27, -4.5, -64, -26.75, -4.5, -27.25, -24.75, -4.5, -24.75, -15.25, -4.5, -16.25, 27, -4.5, -64, 20.25, -4.5, -66.75, 15.5, -4.5, -67.75, 15.25, -4.5, -16.25, 24.75, -4.5, -24.75, 26.75, -4.5, -27.25, -31, -4.5, -62.25, -26.75, -4.5, -27.25, -27, -4.5, -64, 38.75, -4.5, -58, 33.75, -4.5, -61, 27, -4.5, -64, 57.5, -4.5, -39.5, 53.75, -4.5, -44.5, 47, -4.5, -51.5, 47, -4.5, -51.5, 38.75, -4.5, -58, 27, -4.5, -64, 26.75, -4.5, -27.25, 62.25, -4.5, -31, 57.5, -4.5, -39.5, -58, -4.5, -38.75, -61, -4.5, -33.75, -64, -4.5, -27, -24.75, -4.5, -24.75, -26.75, -4.5, -27.25, -51.5, -4.5, -47, -39.5, -4.5, -57.5, -44.5, -4.5, -53.75, -51.5, -4.5, -47, -26.75, -4.5, -27.25, -31, -4.5, -62.25, 10, 0.5, -48.5, 4.75, 0.5, -49.5, -4.75, 0.5, -49.5, -9, 0.5, -10, 9, 0.5, -10, 9, 0.5, -10.75, -9.25, 0.5, -11, -10, 0.5, -48.5, -10, 0.5, -11, -9.25, 0.5, -11, -9.25, 0.5, -11, 9, 0.5, -10.75, 10, 0.5, -11, 10, 0.5, -48.5, -4.75, 0.5, -49.5, -10, 0.5, -48.5, -11.75, 0.5, -11.75, -10.75, 0.5, -11, -10, 0.5, -11, -11.75, 0.5, -12.75, -11.75, 0.5, -12.75, -10, 0.5, -11, -10, 0.5, -48.5, -12, 0.5, -48, 10, 0.5, -11, 10.75, 0.5, -11, 11.75, 0.5, -11.75, 11.75, 0.5, -12.75, 11.75, 0.5, -12.75, 12, 0.5, -48, 10, 0.5, -48.5, 10, 0.5, -11, -12, 0.5, -48, -14.75, 0.5, -47.5, -19, 0.5, -45.75, -18.75, 0.5, -19.25, -17.5, 0.5, -17.75, -11.75, 0.5, -12.75, 19, 0.5, -45.75, 14.75, 0.5, -47.5, 12, 0.5, -48, 11.75, 0.5, -12.75, 17.5, 0.5, -17.75, 18.75, 0.5, -19.25, -24, 0.5, -43.25, -18.75, 0.5, -19.25, -19, 0.5, -45.75, 43.25, 0.5, -24, 41.75, 0.5, -27, 38.5, 0.5, -31.5, 38.5, 0.5, -31.5, 33.25, 0.5, -37, 27, 0.5, -41.75, 19, 0.5, -45.75, 18.75, 0.5, -19.25, 43.25, 0.5, -24, -24, 0.5, -43.25, -27, 0.5, -41.75, -31.5, 0.5, -38.5, -31.5, 0.5, -38.5, -37, 0.5, -33.25, -41.75, 0.5, -27, -45.75, 0.5, -19, -18.75, 0.5, -19.25, -24, 0.5, -43.25, -45.75, 0.5, -19, -17.5, 0.5, -17.75, -18.75, 0.5, -19.25, 26.75, -4.5, -27.25, 24.75, -4.5, -24.75, 64, -4.5, -27, 62.25, -4.5, -31, -64, -4.5, -27, -66.75, -4.5, -20.25, -67.75, -4.5, -15.5, -15.25, -4.5, -15.25, -15.25, -4.5, -16.25, -24.75, -4.5, -24.75, 67.75, -4.5, -15.5, 66.75, -4.5, -20.25, 64, -4.5, -27, 24.75, -4.5, -24.75, 15.25, -4.5, -16.25, 15.25, -4.5, -15.25, 17.5, 0.5, -17.75, 45.75, 0.5, -19, 43.25, 0.5, -24, 18.75, 0.5, -19.25, -45.75, 0.5, -19, -47.5, 0.5, -14.75, -48, 0.5, -12, -11.75, 0.5, -11.75, -11.75, 0.5, -12.75, -17.5, 0.5, -17.75, 48, 0.5, -12, 47.5, 0.5, -14.75, 45.75, 0.5, -19, 17.5, 0.5, -17.75, 11.75, 0.5, -12.75, 11.75, 0.5, -11.75, -11, -4.5, -10.25, -10.5, -4.5, -11, -15.25, -4.5, -15.25, -67.75, -4.5, -15.5, -68.75, -4.5, -10.75, 15.25, -4.5, -15.25, 10.5, -4.5, -11, 11, -4.5, -10.25, 68.75, -4.5, -10.75, 67.75, -4.5, -15.5, -11, 0.5, -10, -10.75, 0.5, -11, -11.75, 0.5, -11.75, -48, 0.5, -12, -48.5, 0.5, -10, 11.75, 0.5, -11.75, 10.75, 0.5, -11, 11, 0.5, -10, 48.5, 0.5, -10, 48, 0.5, -12, -68.75, -4.5, -10.75, -69.5, -4.5, -5, -69.5, -4.5, 5, -11, -4.5, 9.25, -10, -4.5, 9, -10, -4.5, -9, -11, -4.5, 9.25, -10, -4.5, -9, -11, -4.5, -9.25, -68.75, -4.5, -10.75, -69.5, -4.5, 5, -68.75, -4.5, 10.75, -11, -4.5, -9.25, -11, -4.5, -10.25, -68.75, -4.5, -10.75, -68.75, -4.5, 10.75, -11, -4.5, 10.25, -11, -4.5, 9.25, 68.75, -4.5, 10.75, 69.5, -4.5, 5, 69.5, -4.5, -5, 11, -4.5, -9.25, 10, -4.5, -9, 10, -4.5, 9, 11, -4.5, -9.25, 10, -4.5, 9, 11, -4.5, 9.25, 68.75, -4.5, 10.75, 69.5, -4.5, -5, 68.75, -4.5, -10.75, 68.75, -4.5, -10.75, 11, -4.5, -10.25, 11, -4.5, -9.25, 11, -4.5, 9.25, 11, -4.5, 10.25, 68.75, -4.5, 10.75, -48.5, 0.5, -10, -49.5, 0.5, -4.75, -49.5, 0.5, 4.75, -11, 0.5, 9.25, -10, 0.5, 9, -10, 0.5, -9, -11, 0.5, 9.25, -10, 0.5, -9, -11, 0.5, -9.25, -48.5, 0.5, -10, -49.5, 0.5, 4.75, -48.5, 0.5, 10, -11, 0.5, -9.25, -11, 0.5, -10, -48.5, 0.5, -10, -48.5, 0.5, 10, -11, 0.5, 10, -11, 0.5, 9.25, -10, -4.5, -9, -10, -4.5, 9, -9.25, -4.5, 9, -9.25, -4.5, -9, 9, -4.5, 9.25, 10, -4.5, 9, 10, -4.5, -9, 9, -4.5, -9.25, -9.25, -4.5, -9, -9.25, -4.5, 9, -9, -4.5, 10, 9, -4.5, 10, 9, -4.5, 9.25, -9.25, -4.5, 9, 9, -4.5, -9.25, 9, -4.5, -10, -9, -4.5, -10, -9.25, -4.5, -9, -10, 0.5, -9, -10, 0.5, 9, -9.25, 0.5, 9, -9.25, 0.5, -9, 9, 0.5, 9.25, 10, 0.5, 9, 10, 0.5, -9, 9, 0.5, -9.25, -9.25, 0.5, -9, -9.25, 0.5, 9, -9, 0.5, 10, 9, 0.5, 10, 9, 0.5, 9.25, -9.25, 0.5, 9, 9, 0.5, -9.25, 9, 0.5, -10, -9, 0.5, -10, -9.25, 0.5, -9, 48.5, 0.5, 10, 49.5, 0.5, 4.75, 49.5, 0.5, -4.75, 10, 0.5, -9, 10, 0.5, 9, 10.75, 0.5, 9, 10.75, 0.5, -9, 11, 0.5, 10, 48.5, 0.5, 10, 49.5, 0.5, -4.75, 48.5, 0.5, -10, 11, 0.5, -10, 10.75, 0.5, 9, 11, 0.5, -10, 10.75, 0.5, -9, 10.75, 0.5, 9, -11.75, 0.5, 11.75, -10.75, 0.5, 11, -11, 0.5, 10, -48.5, 0.5, 10, -48, 0.5, 12, -10.75, -4.5, 68.75, -5, -4.5, 69.5, 5, -4.5, 69.5, 9.25, -4.5, 11, 9, -4.5, 10, -9, -4.5, 10, 9.25, -4.5, 11, -9, -4.5, 10, -9.25, -4.5, 11, -10.75, -4.5, 68.75, 5, -4.5, 69.5, 10.75, -4.5, 68.75, -9.25, -4.5, 11, -10.25, -4.5, 11, -10.75, -4.5, 68.75, 10.75, -4.5, 68.75, 10.25, -4.5, 11, 9.25, -4.5, 11, -10, 0.5, 48.5, -4.75, 0.5, 49.5, 4.75, 0.5, 49.5, 9, 0.5, 10.75, 9, 0.5, 10, -9, 0.5, 10, -9.25, 0.5, 11, -9.25, 0.5, 11, -10, 0.5, 11, -10, 0.5, 48.5, 10, 0.5, 11, 9, 0.5, 10.75, -9.25, 0.5, 11, -10, 0.5, 48.5, 4.75, 0.5, 49.5, 10, 0.5, 48.5, 11, 0.5, 10, 11, 0.5, 10.75, 11.75, 0.5, 11.75, 12.75, 0.5, 11.75, 12.75, 0.5, 11.75, 48, 0.5, 12, 48.5, 0.5, 10, 11, 0.5, 10, -15.25, -4.5, 15.25, -10.5, -4.5, 11, -11, -4.5, 10.25, -68.75, -4.5, 10.75, -67.75, -4.5, 15.5, 11, -4.5, 10.25, 11, -4.5, 10.5, 15.25, -4.5, 15.25, 16.25, -4.5, 15.25, 16.25, -4.5, 15.25, 67.75, -4.5, 15.5, 68.75, -4.5, 10.75, 11, -4.5, 10.25, 15.25, -4.5, 15.25, 11, -4.5, 10.5, 10.25, -4.5, 11, 10.75, -4.5, 68.75, 15.5, -4.5, 67.75, 11.75, 0.5, 11.75, 11, 0.5, 10.75, 10, 0.5, 11, 10, 0.5, 48.5, 12, 0.5, 48, -10, 0.5, 11, -10.75, 0.5, 11, -11.75, 0.5, 11.75, -11.75, 0.5, 12.75, -11.75, 0.5, 12.75, -12, 0.5, 48, -10, 0.5, 48.5, -10, 0.5, 11, -10.25, -4.5, 11, -10.5, -4.5, 11, -15.25, -4.5, 15.25, -15.25, -4.5, 16.25, -15.25, -4.5, 16.25, -15.5, -4.5, 67.75, -10.75, -4.5, 68.75, -10.25, -4.5, 11, -48, 0.5, 12, -47.5, 0.5, 14.75, -45.75, 0.5, 19, -17.5, 0.5, 17.75, -11.75, 0.5, 12.75, -11.75, 0.5, 11.75, 12, 0.5, 48, 14.75, 0.5, 47.5, 19, 0.5, 45.75, 17.75, 0.5, 17.5, 12.75, 0.5, 11.75, 11.75, 0.5, 11.75, 45.75, 0.5, 19, 47.5, 0.5, 14.75, 48, 0.5, 12, 12.75, 0.5, 11.75, 17.75, 0.5, 17.5, 19.25, 0.5, 18.75, -19, 0.5, 45.75, -14.75, 0.5, 47.5, -12, 0.5, 48, -11.75, 0.5, 12.75, -17.5, 0.5, 17.75, -18.75, 0.5, 19.25, -67.75, -4.5, 15.5, -66.75, -4.5, 20.25, -64, -4.5, 27, -24.75, -4.5, 24.75, -15.25, -4.5, 16.25, -15.25, -4.5, 15.25, 15.5, -4.5, 67.75, 20.25, -4.5, 66.75, 27, -4.5, 64, 24.75, -4.5, 24.75, 16.25, -4.5, 15.25, 15.25, -4.5, 15.25, 64, -4.5, 27, 66.75, -4.5, 20.25, 67.75, -4.5, 15.5, 16.25, -4.5, 15.25, 24.75, -4.5, 24.75, 27.25, -4.5, 26.75, -27, -4.5, 64, -20.25, -4.5, 66.75, -15.5, -4.5, 67.75, -15.25, -4.5, 16.25, -24.75, -4.5, 24.75, -26.75, -4.5, 27.25, 38.5, 0.5, 31.5, 41.75, 0.5, 27, 43.25, 0.5, 24, 27, 0.5, 41.75, 33.25, 0.5, 37, 38.5, 0.5, 31.5, 43.25, 0.5, 24, 19.25, 0.5, 18.75, 19, 0.5, 45.75, 19, 0.5, 45.75, 19.25, 0.5, 18.75, 17.75, 0.5, 17.5, -43.25, 0.5, 24, -18.75, 0.5, 19.25, -17.5, 0.5, 17.75, -45.75, 0.5, 19, 43.25, 0.5, 24, 45.75, 0.5, 19, 19.25, 0.5, 18.75, -43.25, 0.5, 24, -41.75, 0.5, 27, -38.5, 0.5, 31.5, -38.5, 0.5, 31.5, -33.25, 0.5, 37, -27, 0.5, 41.75, -19, 0.5, 45.75, -18.75, 0.5, 19.25, -43.25, 0.5, 24, -64, -4.5, 27, -62.25, -4.5, 31, -26.75, -4.5, 27.25, -24.75, -4.5, 24.75, 27, -4.5, 64, 33.75, -4.5, 61, 38.75, -4.5, 58, 47, -4.5, 51.5, 27.25, -4.5, 26.75, 24.75, -4.5, 24.75, 47, -4.5, 51.5, 53.75, -4.5, 44.5, 57.5, -4.5, 39.5, 62.25, -4.5, 31, 27.25, -4.5, 26.75, 62.25, -4.5, 31, 64, -4.5, 27, 27.25, -4.5, 26.75, -38.75, -4.5, 58, -33.75, -4.5, 61, -27, -4.5, 64, -57.5, -4.5, 39.5, -53.75, -4.5, 44.5, -47, -4.5, 51.5, -47, -4.5, 51.5, -38.75, -4.5, 58, -27, -4.5, 64, -26.75, -4.5, 27.25, -62.25, -4.5, 31, -57.5, -4.5, 39.5) +polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(5, 4, 3), PackedInt32Array(7, 6, 8), PackedInt32Array(8, 6, 11), PackedInt32Array(8, 11, 10), PackedInt32Array(8, 10, 9), PackedInt32Array(14, 13, 12), PackedInt32Array(17, 16, 15), PackedInt32Array(19, 18, 20), PackedInt32Array(20, 18, 21), PackedInt32Array(25, 24, 22), PackedInt32Array(22, 24, 23), PackedInt32Array(27, 26, 28), PackedInt32Array(28, 26, 29), PackedInt32Array(31, 30, 32), PackedInt32Array(32, 30, 33), PackedInt32Array(35, 34, 36), PackedInt32Array(36, 34, 37), PackedInt32Array(37, 34, 38), PackedInt32Array(38, 34, 39), PackedInt32Array(41, 40, 42), PackedInt32Array(42, 40, 45), PackedInt32Array(42, 45, 44), PackedInt32Array(42, 44, 43), PackedInt32Array(48, 47, 46), PackedInt32Array(51, 50, 49), PackedInt32Array(54, 53, 52), PackedInt32Array(56, 55, 57), PackedInt32Array(57, 55, 60), PackedInt32Array(57, 60, 59), PackedInt32Array(57, 59, 58), PackedInt32Array(62, 61, 63), PackedInt32Array(63, 61, 66), PackedInt32Array(63, 66, 65), PackedInt32Array(63, 65, 64), PackedInt32Array(68, 67, 69), PackedInt32Array(69, 67, 71), PackedInt32Array(69, 71, 70), PackedInt32Array(74, 73, 72), PackedInt32Array(76, 75, 77), PackedInt32Array(77, 75, 78), PackedInt32Array(81, 80, 79), PackedInt32Array(83, 82, 84), PackedInt32Array(84, 82, 85), PackedInt32Array(85, 82, 86), PackedInt32Array(86, 82, 87), PackedInt32Array(89, 88, 90), PackedInt32Array(90, 88, 91), PackedInt32Array(95, 94, 92), PackedInt32Array(92, 94, 93), PackedInt32Array(97, 96, 98), PackedInt32Array(98, 96, 99), PackedInt32Array(101, 100, 102), PackedInt32Array(102, 100, 103), PackedInt32Array(105, 104, 106), PackedInt32Array(106, 104, 107), PackedInt32Array(107, 104, 108), PackedInt32Array(108, 104, 109), PackedInt32Array(111, 110, 112), PackedInt32Array(112, 110, 115), PackedInt32Array(112, 115, 114), PackedInt32Array(112, 114, 113), PackedInt32Array(118, 117, 116), PackedInt32Array(121, 120, 119), PackedInt32Array(123, 122, 124), PackedInt32Array(124, 122, 127), PackedInt32Array(124, 127, 125), PackedInt32Array(125, 127, 126), PackedInt32Array(130, 129, 128), PackedInt32Array(132, 131, 133), PackedInt32Array(133, 131, 136), PackedInt32Array(133, 136, 134), PackedInt32Array(134, 136, 135), PackedInt32Array(139, 138, 137), PackedInt32Array(140, 143, 141), PackedInt32Array(141, 143, 142), PackedInt32Array(145, 144, 146), PackedInt32Array(146, 144, 149), PackedInt32Array(146, 149, 148), PackedInt32Array(146, 148, 147), PackedInt32Array(151, 150, 152), PackedInt32Array(152, 150, 153), PackedInt32Array(153, 150, 154), PackedInt32Array(154, 150, 155), PackedInt32Array(159, 158, 156), PackedInt32Array(156, 158, 157), PackedInt32Array(161, 160, 162), PackedInt32Array(162, 160, 165), PackedInt32Array(162, 165, 164), PackedInt32Array(162, 164, 163), PackedInt32Array(167, 166, 168), PackedInt32Array(168, 166, 169), PackedInt32Array(169, 166, 170), PackedInt32Array(170, 166, 171), PackedInt32Array(173, 172, 174), PackedInt32Array(174, 172, 175), PackedInt32Array(175, 172, 176), PackedInt32Array(178, 177, 179), PackedInt32Array(179, 177, 181), PackedInt32Array(179, 181, 180), PackedInt32Array(183, 182, 184), PackedInt32Array(184, 182, 185), PackedInt32Array(185, 182, 186), PackedInt32Array(188, 187, 189), PackedInt32Array(189, 187, 191), PackedInt32Array(189, 191, 190), PackedInt32Array(194, 193, 192), PackedInt32Array(197, 196, 195), PackedInt32Array(199, 198, 200), PackedInt32Array(200, 198, 203), PackedInt32Array(200, 203, 202), PackedInt32Array(200, 202, 201), PackedInt32Array(206, 205, 204), PackedInt32Array(209, 208, 207), PackedInt32Array(212, 211, 210), PackedInt32Array(215, 214, 213), PackedInt32Array(217, 216, 218), PackedInt32Array(218, 216, 221), PackedInt32Array(218, 221, 220), PackedInt32Array(218, 220, 219), PackedInt32Array(224, 223, 222), PackedInt32Array(227, 226, 225), PackedInt32Array(230, 229, 228), PackedInt32Array(233, 232, 231), PackedInt32Array(235, 234, 236), PackedInt32Array(236, 234, 239), PackedInt32Array(236, 239, 238), PackedInt32Array(236, 238, 237), PackedInt32Array(242, 241, 240), PackedInt32Array(245, 244, 243), PackedInt32Array(249, 248, 246), PackedInt32Array(246, 248, 247), PackedInt32Array(251, 250, 252), PackedInt32Array(252, 250, 253), PackedInt32Array(253, 250, 255), PackedInt32Array(253, 255, 254), PackedInt32Array(257, 256, 258), PackedInt32Array(258, 256, 259), PackedInt32Array(261, 260, 262), PackedInt32Array(262, 260, 263), PackedInt32Array(267, 266, 264), PackedInt32Array(264, 266, 265), PackedInt32Array(269, 268, 270), PackedInt32Array(270, 268, 271), PackedInt32Array(271, 268, 273), PackedInt32Array(271, 273, 272), PackedInt32Array(275, 274, 276), PackedInt32Array(276, 274, 277), PackedInt32Array(279, 278, 280), PackedInt32Array(280, 278, 281), PackedInt32Array(284, 283, 282), PackedInt32Array(288, 287, 285), PackedInt32Array(285, 287, 286), PackedInt32Array(294, 293, 289), PackedInt32Array(289, 293, 292), PackedInt32Array(289, 292, 291), PackedInt32Array(289, 291, 290), PackedInt32Array(297, 296, 295), PackedInt32Array(299, 298, 300), PackedInt32Array(300, 298, 302), PackedInt32Array(300, 302, 301), PackedInt32Array(305, 304, 303), PackedInt32Array(308, 307, 306), PackedInt32Array(310, 309, 311), PackedInt32Array(311, 309, 314), PackedInt32Array(311, 314, 313), PackedInt32Array(311, 313, 312), PackedInt32Array(317, 316, 315), PackedInt32Array(320, 319, 318), PackedInt32Array(323, 322, 321), PackedInt32Array(325, 324, 326), PackedInt32Array(326, 324, 327), PackedInt32Array(330, 329, 328), PackedInt32Array(332, 331, 333), PackedInt32Array(333, 331, 336), PackedInt32Array(333, 336, 335), PackedInt32Array(333, 335, 334), PackedInt32Array(338, 337, 339), PackedInt32Array(339, 337, 340), PackedInt32Array(342, 341, 343), PackedInt32Array(343, 341, 344), PackedInt32Array(346, 345, 347), PackedInt32Array(347, 345, 349), PackedInt32Array(347, 349, 348), PackedInt32Array(351, 350, 352), PackedInt32Array(352, 350, 353), PackedInt32Array(355, 354, 356), PackedInt32Array(356, 354, 357), PackedInt32Array(359, 358, 360), PackedInt32Array(360, 358, 362), PackedInt32Array(360, 362, 361), PackedInt32Array(364, 363, 365), PackedInt32Array(365, 363, 367), PackedInt32Array(365, 367, 366), PackedInt32Array(369, 368, 370), PackedInt32Array(370, 368, 371), PackedInt32Array(373, 372, 374), PackedInt32Array(374, 372, 375), PackedInt32Array(377, 376, 378), PackedInt32Array(378, 376, 379), PackedInt32Array(381, 380, 382), PackedInt32Array(382, 380, 383), PackedInt32Array(385, 384, 386), PackedInt32Array(386, 384, 387), PackedInt32Array(387, 384, 388), PackedInt32Array(388, 384, 389), PackedInt32Array(391, 390, 392), PackedInt32Array(392, 390, 393), PackedInt32Array(393, 390, 394), PackedInt32Array(394, 390, 395), PackedInt32Array(397, 396, 398), PackedInt32Array(398, 396, 401), PackedInt32Array(398, 401, 400), PackedInt32Array(398, 400, 399), PackedInt32Array(403, 402, 404), PackedInt32Array(404, 402, 407), PackedInt32Array(404, 407, 406), PackedInt32Array(404, 406, 405), PackedInt32Array(409, 408, 410), PackedInt32Array(410, 408, 411), PackedInt32Array(411, 408, 412), PackedInt32Array(412, 408, 413), PackedInt32Array(415, 414, 416), PackedInt32Array(416, 414, 417), PackedInt32Array(417, 414, 418), PackedInt32Array(418, 414, 419), PackedInt32Array(421, 420, 422), PackedInt32Array(422, 420, 425), PackedInt32Array(422, 425, 424), PackedInt32Array(422, 424, 423), PackedInt32Array(427, 426, 428), PackedInt32Array(428, 426, 431), PackedInt32Array(428, 431, 430), PackedInt32Array(428, 430, 429), PackedInt32Array(432, 434, 433), PackedInt32Array(436, 435, 437), PackedInt32Array(437, 435, 438), PackedInt32Array(438, 435, 440), PackedInt32Array(438, 440, 439), PackedInt32Array(443, 442, 441), PackedInt32Array(445, 444, 446), PackedInt32Array(446, 444, 447), PackedInt32Array(449, 448, 450), PackedInt32Array(453, 452, 451), PackedInt32Array(455, 454, 456), PackedInt32Array(456, 454, 459), PackedInt32Array(456, 459, 457), PackedInt32Array(457, 459, 458), PackedInt32Array(462, 461, 463), PackedInt32Array(463, 461, 460), PackedInt32Array(465, 464, 466), PackedInt32Array(466, 464, 467), PackedInt32Array(467, 464, 468), PackedInt32Array(468, 464, 469), PackedInt32Array(471, 470, 472), PackedInt32Array(472, 470, 473), PackedInt32Array(473, 470, 474), PackedInt32Array(477, 476, 475), PackedInt32Array(480, 479, 478), PackedInt32Array(483, 482, 481), PackedInt32Array(485, 484, 486), PackedInt32Array(486, 484, 489), PackedInt32Array(486, 489, 488), PackedInt32Array(486, 488, 487)] + [sub_resource type="CylinderMesh" id="CylinderMesh_uarav"] material = ExtResource("3_jqqt6") top_radius = 50.0 @@ -132,6 +137,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="Dummy" parent="." instance=ExtResource("2_stkni")] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 10) +[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) +target = NodePath("../Player") + [node name="Environment" type="Node3D" parent="."] [node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"] @@ -152,7 +161,8 @@ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 10, light_energy = 10.006 shadow_enabled = true -[node name="WorldGeometry" type="Node3D" parent="."] +[node name="WorldGeometry" type="NavigationRegion3D" parent="."] +navigation_mesh = SubResource("NavigationMesh_ltpuv") [node name="Floor" type="MeshInstance3D" parent="WorldGeometry"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0) diff --git a/src/npc/mech_character/mech_character.gd b/src/npc/mech_character/mech_character.gd new file mode 100644 index 0000000..e87f5f2 --- /dev/null +++ b/src/npc/mech_character/mech_character.gd @@ -0,0 +1,103 @@ +class_name MechCharacter +extends DamageableBody + +enum Equipment { + AUTOCANNON, + RIFLE, +} + +const BASE_SPEED: float = 5.0 +const BOOST_FORCE: float = 20.0 +const JUMP_FORCE: float = 8.0 +const TURN_SENSITIVITY: float = 0.04 +const MOVEMENT_SENSITIVITY: float = 0.7 + +@export var _equipment: Equipment = Equipment.AUTOCANNON + +var _weapon: Weapon = null +var _boost_triggered: bool = false + +@onready var autocannon: Weapon = %WeaponSlot/Autocannon +@onready var rifle: Weapon = %WeaponSlot/Rifle + +@onready var mesh: Node3D = $Mesh +@onready var animation_tree: AnimationTree = $Mesh/Mech/AnimationTree +@onready var shadow_listener: ShadowListener = $ShadowListener +@onready var spark_shower: GPUParticles3D = $SparkShower + + +func shutdown() -> void: + animation_tree["parameters/online_state/transition_request"] = "offline" + spark_shower.emitting = true + + +func is_boosting() -> bool: + return _boost_triggered or animation_tree["parameters/boost/active"] + + +func in_shadow() -> bool: + return shadow_listener.in_shadow() + + +func boost(movement: Vector3) -> void: + velocity.x += movement.x * BOOST_FORCE + velocity.z += movement.z * BOOST_FORCE + velocity.y = 0.0 + mesh.rotation.y = atan2(velocity.x, velocity.z) + animation_tree["parameters/boost/request"] = 1 + _boost_triggered = true + + +func _ready() -> void: + set_equipment(_equipment) + + +func set_equipment(value: Equipment) -> void: + if _weapon: + _weapon.deactivate() + _weapon.visible = false + _weapon = null + + match value: + Equipment.AUTOCANNON: + _weapon = autocannon + _weapon.visible = true + Equipment.RIFLE: + _weapon = rifle + _weapon.visible = true + + +func physics_process(movement: Vector3, delta: float) -> void: + var delta_factor: float = delta * GameState.TARGET_FPS + var effective_gravity: float = GameState.gravity + + if is_boosting(): + effective_gravity *= 0.1 + + # Add the gravity. + if not is_on_floor(): + velocity.y -= effective_gravity * delta + animation_tree["parameters/jump_state/transition_request"] = "in_air" + animation_tree["parameters/anim_state/transition_request"] = "air" + elif animation_tree["parameters/anim_state/current_state"] == "air": + # If not on floor but still in jump state, transition back to landing + animation_tree["parameters/jump_state/transition_request"] = "end" + + if movement: + if not is_boosting(): + velocity.x = lerpf( + velocity.x, movement.x * BASE_SPEED, delta_factor * MOVEMENT_SENSITIVITY + ) + velocity.z = lerpf( + velocity.z, movement.z * BASE_SPEED, delta_factor * MOVEMENT_SENSITIVITY + ) + + var drag: float = ( + GameState.FRICTION if (is_on_floor() and not is_boosting()) else GameState.AIR_DRAG + ) + velocity.x = lerpf(velocity.x, 0.0, delta_factor * drag) + velocity.z = lerpf(velocity.z, 0.0, delta_factor * drag) + + move_and_slide() + + _boost_triggered = false diff --git a/src/npc/mech_character/mech_character.tscn b/src/npc/mech_character/mech_character.tscn index 099379a..cb9c5e4 100644 --- a/src/npc/mech_character/mech_character.tscn +++ b/src/npc/mech_character/mech_character.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=7 format=3 uid="uid://b4lueyrglqwou"] +[gd_scene load_steps=8 format=3 uid="uid://b4lueyrglqwou"] +[ext_resource type="Script" path="res://src/npc/mech_character/mech_character.gd" id="1_0ew1j"] [ext_resource type="PackedScene" uid="uid://dd7ebaau8a70n" path="res://assets/models/bipedal_mech/mech.tscn" id="2_aopor"] [ext_resource type="PackedScene" uid="uid://in6j0ylwrk7l" path="res://src/equip/autocannon/autocannon.tscn" id="3_ft5ut"] [ext_resource type="PackedScene" uid="uid://csm36ra2445ho" path="res://src/equip/rifle/rifle.tscn" id="4_57ynl"] @@ -10,6 +11,7 @@ radius = 0.7 [node name="MechCharacter" type="CharacterBody3D"] +script = ExtResource("1_0ew1j") [node name="Mesh" type="Node3D" parent="."] @@ -17,79 +19,87 @@ radius = 0.7 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(0, 0, 6.23759) -bones/3/rotation = Quaternion(0.651009, 0.670785, 0.247618, 0.254792) -bones/4/rotation = Quaternion(0.735682, 0.0536577, 0.076183, 0.670887) -bones/5/rotation = Quaternion(-0.651733, -0.00101643, -0.105732, 0.751042) -bones/6/rotation = Quaternion(-0.430789, 0.0118404, -0.0625026, 0.900208) -bones/7/rotation = Quaternion(-0.850415, 0.0349235, -0.176651, 0.494337) -bones/11/rotation = Quaternion(-0.847049, 0.0412891, -0.172163, 0.501162) -bones/17/rotation = Quaternion(0.751032, 0.0221994, 0.659286, 0.0282963) -bones/23/rotation = Quaternion(0.870925, 0.00333786, 0.143775, 0.469902) -bones/27/rotation = Quaternion(-0.597034, -0.00502824, -0.109086, 0.794749) -bones/33/rotation = Quaternion(-0.589593, -0.00910317, -0.114027, 0.79956) -bones/35/rotation = Quaternion(-0.677082, 0.00411487, -0.109501, 0.727704) -bones/41/rotation = Quaternion(-0.0150593, 0.941681, 0.335951, 0.0121281) -bones/74/rotation = Quaternion(-0.651009, 0.670785, 0.247618, -0.254792) -bones/75/rotation = Quaternion(0.735682, -0.0536578, -0.076183, 0.670887) -bones/76/rotation = Quaternion(-0.651733, 0.00101644, 0.105732, 0.751042) -bones/77/rotation = Quaternion(-0.430789, -0.0118404, 0.0625025, 0.900208) -bones/78/rotation = Quaternion(-0.850419, -0.0349614, 0.176591, 0.49435) -bones/82/rotation = Quaternion(-0.847049, -0.0412891, 0.172163, 0.501162) -bones/88/rotation = Quaternion(0.751032, -0.0221989, -0.659286, 0.0282969) -bones/94/rotation = Quaternion(0.870925, -0.00333786, -0.143775, 0.469902) -bones/98/rotation = Quaternion(-0.597034, 0.0050282, 0.109086, 0.794749) -bones/102/rotation = Quaternion(-0.589593, 0.00910316, 0.114027, 0.79956) -bones/106/rotation = Quaternion(-0.677082, -0.00411495, 0.109501, 0.727704) -bones/112/rotation = Quaternion(0.0150593, 0.941681, 0.335951, -0.0121281) +bones/1/position = Vector3(0, 0, 6.43541) +bones/1/rotation = Quaternion(0.707107, 0, 0, 0.707107) +bones/3/rotation = Quaternion(0.655055, 0.674461, 0.237423, 0.244203) +bones/4/rotation = Quaternion(0.703361, 0.0560271, 0.0727576, 0.704876) +bones/5/rotation = Quaternion(-0.624223, -0.00138014, -0.101757, 0.77459) +bones/6/rotation = Quaternion(-0.435035, 0.0114024, -0.0628198, 0.898147) +bones/7/rotation = Quaternion(-0.840924, 0.0365036, -0.173958, 0.511129) +bones/11/rotation = Quaternion(-0.837339, 0.043125, -0.16938, 0.51799) +bones/17/rotation = Quaternion(0.752035, 0.0111207, 0.658933, 0.0112758) +bones/23/rotation = Quaternion(0.897896, 0.00348223, 0.148209, 0.414494) +bones/27/rotation = Quaternion(-0.557714, -0.00571742, -0.103527, 0.823532) +bones/33/rotation = Quaternion(-0.54989, -0.00984775, -0.108577, 0.828091) +bones/35/rotation = Quaternion(-0.637011, 0.00365559, -0.103529, 0.763862) +bones/41/rotation = Quaternion(-0.014808, 0.936198, 0.350954, 0.012052) +bones/50/rotation = Quaternion(0.80296, 2.84212e-07, 3.82883e-07, 0.596033) +bones/51/rotation = Quaternion(0.595723, -0.000239473, 0.000322365, 0.80319) +bones/55/rotation = Quaternion(0.595723, 0.000238707, -0.000321796, 0.80319) +bones/62/rotation = Quaternion(-0.000385918, 2.26638e-14, -0.000401128, 1) +bones/66/rotation = Quaternion(-0.000385918, -2.26638e-14, 0.000401128, 1) +bones/74/rotation = Quaternion(-0.655055, 0.674461, 0.237423, -0.244203) +bones/75/rotation = Quaternion(0.703361, -0.0560271, -0.0727576, 0.704876) +bones/76/rotation = Quaternion(-0.624223, 0.00138015, 0.101757, 0.77459) +bones/77/rotation = Quaternion(-0.435035, -0.0114025, 0.0628198, 0.898147) +bones/78/rotation = Quaternion(-0.840924, -0.0365036, 0.173957, 0.511129) +bones/82/rotation = Quaternion(-0.837339, -0.0431251, 0.16938, 0.51799) +bones/88/rotation = Quaternion(0.752029, -0.0111361, -0.65894, 0.0113004) +bones/94/rotation = Quaternion(0.897896, -0.00348242, -0.148209, 0.414494) +bones/98/rotation = Quaternion(-0.557714, 0.00571746, 0.103527, 0.823532) +bones/102/rotation = Quaternion(-0.549891, 0.00984779, 0.108577, 0.828091) +bones/106/rotation = Quaternion(-0.637011, -0.00365553, 0.103529, 0.763862) +bones/112/rotation = Quaternion(0.0148081, 0.936198, 0.350954, -0.012052) +bones/122/rotation = Quaternion(0.993232, -0.00676712, 0.0811637, -0.0828125) +bones/126/rotation = Quaternion(0.993232, 0.00676712, -0.0811637, -0.0828125) [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.999993, 0.000290558, 0.00374275, -0.000460908, 0.998961, 0.0455967, -0.00372569, -0.045598, 0.998953, -0.0135634, -0.026239, 0.0566033) +transform = Transform3D(1, 0.000186831, 0.00058537, -0.000190333, 0.999984, 0.00591889, -0.000584207, -0.00591895, 0.999983, -0.00239801, -0.00480372, 0.0075199) [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.999991, 0.00100304, 0.00408372, -0.00118963, 0.998943, 0.0459377, -0.00403336, -0.045942, 0.998936, -0.0145595, -0.0251452, 0.0564788) +transform = Transform3D(1, 0.000317246, 0.000605434, -0.000320837, 0.999982, 0.00594589, -0.000603519, -0.00594607, 0.999982, -0.00254416, -0.00456065, 0.00744718) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(0.999998, -0.000559216, 0.00174321, 0.000558067, 1, 0.000659093, -0.00174364, -0.000658005, 0.999998, -0.0110531, 0.00689599, 0.00383896) +transform = Transform3D(1, 3.80911e-05, 0.000357553, -3.81041e-05, 1, -3.91901e-06, -0.000357583, 3.99351e-06, 1, -0.00205898, -0.000378802, 0.000787675) [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.999994, -0.00141488, 0.00284112, 0.00124969, 0.998355, 0.0573219, -0.0029176, -0.057318, 0.998351, -0.0111406, -0.0595755, 0.0188265) +transform = Transform3D(0.999999, 0.00096336, -8.22991e-05, -0.000962779, 0.999978, 0.00660875, 8.86321e-05, -0.00660872, 0.999978, -0.00153995, -0.00397903, -2.6226e-05) [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.999996, -0.000522822, 0.00292572, 0.000486016, 0.999921, 0.0125693, -0.00293211, -0.0125677, 0.999916, -0.0114918, 0.00251889, 0.00519013) +transform = Transform3D(1, 3.98457e-05, 0.000524953, -4.11496e-05, 0.999998, 0.00245926, -0.000524849, -0.00245917, 0.999997, -0.00212216, -0.00131941, 0.000813007) [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.999998, -0.0017859, -0.000735451, 0.00183438, 0.997385, 0.0722432, 0.000604436, -0.0722442, 0.997387, 0.00710964, -0.433309, -0.0117679) +transform = Transform3D(1, -0.000181273, -0.000213599, 0.000183702, 0.999934, 0.0115316, 0.000211482, -0.0115316, 0.999934, 0.00160909, -0.0691319, -0.00347757) [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.999994, 0.00108372, 0.00316969, -0.00121908, 0.999073, 0.043038, -0.00312015, -0.0430416, 0.999068, -0.0145738, -0.00939524, 0.0891325) +transform = Transform3D(1, 0.000299767, 0.000573598, -0.000304207, 0.999971, 0.00770432, -0.000571236, -0.0077045, 0.99997, -0.0026722, -0.00406194, 0.0143626) [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.999994, 0.00108372, 0.00316969, -0.00121908, 0.999073, 0.043038, -0.00312015, -0.0430416, 0.999068, -0.0145738, -0.00939524, 0.0891325) +transform = Transform3D(1, 0.000299767, 0.000573598, -0.000304207, 0.999971, 0.00770432, -0.000571236, -0.0077045, 0.99997, -0.0026722, -0.00406194, 0.0143626) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(0.999996, -0.000870749, 0.00260462, 0.000726014, 0.998482, 0.0550783, -0.00264866, -0.0550761, 0.998478, -0.0109663, -0.0536787, 0.0191553) +transform = Transform3D(1, 1.86265e-05, 0.000465631, -2.29329e-05, 0.999957, 0.00923941, -0.000465401, -0.00923938, 0.999957, -0.00203776, -0.010464, 0.00243926) [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.999993, -0.000198014, 0.0037817, 0.000477307, 0.997258, -0.0739939, -0.00375672, 0.0739952, 0.997251, -0.0140297, 0.230324, -0.0702987) +transform = Transform3D(1, 3.35574e-05, 0.000676796, -2.59206e-05, 0.999936, -0.0113102, -0.000677086, 0.0113102, 0.999936, -0.0025115, 0.0345083, -0.0120716) [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, -0.000137471, -0.000979165, 0.000208952, 0.997305, 0.0733715, 0.00096641, -0.0733715, 0.997304, 0.00628328, -0.439975, -0.173948) +transform = Transform3D(1, 4.42751e-06, -0.000106605, -3.34904e-06, 0.999949, 0.0101283, 0.000106683, -0.0101282, 0.999949, 0.000710487, -0.0618093, -0.0297704) [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.000387796, -0.00071482, 0.000414445, 0.999291, 0.037651, 0.00069969, -0.0376512, 0.999291, 0.0049336, -0.243445, -0.200756) +transform = Transform3D(1, -5.05625e-05, -0.000114243, 5.12782e-05, 0.999981, 0.00630125, 0.000113967, -0.00630119, 0.99998, 0.000779152, -0.0407721, -0.0317521) [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, -0.234607) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.036788) [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, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.234607) +transform = Transform3D(1, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.036788) [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, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.234609) +transform = Transform3D(1, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.0367899) [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.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.234609) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.0367899) [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 @@ -105,58 +115,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.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.234609) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.0367899) [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.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.234608) +transform = Transform3D(1, 1.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.036788) [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.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.234608) +transform = Transform3D(1, -1.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.036788) [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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.234607) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.036788) [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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.234607) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.036788) [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.999994, -0.00031516, -0.00360405, 0.000479057, 0.998962, 0.0455626, 0.00358592, -0.045564, 0.998955, 0.013474, -0.0261474, 0.0560769) +transform = Transform3D(1, -0.000187829, -0.000584267, 0.000191256, 0.999983, 0.00591949, 0.000583149, -0.00591961, 0.999982, 0.00239921, -0.0047999, 0.00751638) [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.999991, -0.00100347, -0.00408389, 0.00119004, 0.998944, 0.0459376, 0.00403353, -0.0459421, 0.998936, 0.0145607, -0.0251437, 0.0564788) +transform = Transform3D(1, -0.000317425, -0.000605412, 0.000321016, 0.999983, 0.00594622, 0.000603527, -0.00594634, 0.999982, 0.00254512, -0.00456077, 0.00744689) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(0.999998, 0.00055889, -0.00174338, -0.00055773, 1, 0.000658914, 0.00174378, -0.000657931, 0.999998, 0.0110533, 0.0068974, 0.00383916) +transform = Transform3D(1, -3.8052e-05, -0.000357568, 3.80725e-05, 1, -3.93391e-06, 0.000357553, 3.96371e-06, 1, 0.00205874, -0.000379011, 0.000787437) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(0.999995, 0.00141507, -0.00283943, -0.00124934, 0.998355, 0.0573221, 0.00291543, -0.0573185, 0.998351, 0.0111442, -0.0595756, 0.0188223) +transform = Transform3D(1, -0.000946, 7.47293e-05, 0.00094603, 0.999978, 0.00666675, -8.13901e-05, -0.00666684, 0.999978, 0.00155091, -0.00411111, 1.49012e-05) [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.999996, 0.000522636, -0.0029258, -0.000485808, 0.999921, 0.0125692, 0.00293212, -0.0125677, 0.999916, 0.011492, 0.0025202, 0.00519037) +transform = Transform3D(1, -3.98159e-05, -0.000524968, 4.11272e-05, 0.999997, 0.00245926, 0.000524841, -0.00245917, 0.999997, 0.00212169, -0.00131923, 0.000812531) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(0.999998, 0.00178574, 0.000735077, -0.00183418, 0.997386, 0.0722431, -0.000604169, -0.0722442, 0.997387, -0.00710678, -0.433308, -0.0117669) +transform = Transform3D(1, 0.000181451, 0.000212947, -0.00018388, 0.999934, 0.0115301, -0.000210897, -0.0115301, 0.999934, -0.00160503, -0.0691255, -0.00347662) [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.999995, -0.00108418, -0.00316995, 0.00121959, 0.999073, 0.043038, 0.0031203, -0.0430416, 0.999068, 0.0145757, -0.00939333, 0.0891333) +transform = Transform3D(1, -0.000299841, -0.000573695, 0.000304297, 0.99997, 0.00770405, 0.000571322, -0.00770429, 0.99997, 0.00267267, -0.0040611, 0.0143633) [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.999993, -0.0019232, -0.00335271, 0.00206682, 0.999057, 0.0433791, 0.0032661, -0.0433857, 0.999053, 0.0160868, -0.00932372, 0.0879135) +transform = Transform3D(1, -0.000451088, -0.000589438, 0.000455678, 0.99997, 0.00775856, 0.000585902, -0.00775886, 0.99997, 0.00290942, -0.00401974, 0.0141356) [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.999996, 0.00087022, -0.00260495, -0.000725463, 0.998482, 0.0550784, 0.00264892, -0.0550764, 0.998478, 0.0109675, -0.0536767, 0.0191562) +transform = Transform3D(1, -1.86861e-05, -0.000465825, 2.29776e-05, 0.999957, 0.00923932, 0.000465579, -0.00923926, 0.999957, 0.00203824, -0.0104634, 0.00243974) [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.999993, 0.000197753, -0.00378161, -0.000477061, 0.997259, -0.0739941, 0.0037566, 0.0739954, 0.997251, 0.01403, 0.230326, -0.0702987) +transform = Transform3D(1, -3.35723e-05, -0.000676639, 2.5928e-05, 0.999936, -0.0113103, 0.00067693, 0.0113103, 0.999936, 0.00251126, 0.0345089, -0.0120716) [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, 0.00013715, 0.000978857, -0.000208627, 0.997305, 0.0733715, -0.000966197, -0.0733715, 0.997304, -0.00628138, -0.439974, -0.173948) +transform = Transform3D(1, -4.71622e-06, 0.000106197, 3.63775e-06, 0.999949, 0.0101291, -0.000106292, -0.0101291, 0.999949, -0.00070715, -0.061813, -0.0297685) [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.000387687, 0.000714766, -0.000414348, 0.999291, 0.0376509, -0.00069971, -0.0376512, 0.999291, -0.00493383, -0.243443, -0.200757) +transform = Transform3D(1, 5.05532e-05, 0.000114261, -5.12695e-05, 0.999981, 0.00630125, -0.000113987, -0.00630119, 0.99998, -0.000779629, -0.0407717, -0.0317526) [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, -0.234607) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.036788) [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.gd b/src/npc/mech_enemy/mech_enemy.gd new file mode 100644 index 0000000..4b6031f --- /dev/null +++ b/src/npc/mech_enemy/mech_enemy.gd @@ -0,0 +1,62 @@ +extends MechCharacter + +@export var target: MechCharacter + +@onready var nav_agent: NavigationAgent3D = $NavigationAgent3D + +# gdlint: disable=class-definitions-order +var target_position: Vector3: + set(value): + nav_agent.target_position = value + get: + return nav_agent.target_position +# gdlint: enable=class-definitions-order + + +func _actor_setup() -> void: + # Wait for the first physics frame so the navserver can sync + await get_tree().physics_frame + set_physics_process(true) + + +func _ready() -> void: + # Disable physics processing to give the navserver time to sync + set_physics_process(false) + # Can't await during _ready, so defer the call with the await + call_deferred("_actor_setup") + + +func _physics_process(delta: float) -> void: + var delta_factor: float = delta * GameState.TARGET_FPS + + if target and not target.in_shadow(): + target_position = target.global_position + + var relative_target: Vector3 = target_position - global_position + var angle_to_target: float = atan2(relative_target.x, relative_target.z) + + var movement: Vector3 = ( + (nav_agent.get_next_path_position() - global_position).normalized() + if relative_target.length() > 5 + else Vector3.ZERO + ) + + if movement: + # Slowly turn mesh towards camera vector when moving on ground + if is_on_floor(): + var local_target: Vector3 = global_position - target_position + mesh.global_rotation.y = lerp_angle( + mesh.global_rotation.y, angle_to_target, delta_factor * TURN_SENSITIVITY + ) + + var relative_motion_vec: Vector2 = Vector2(-movement.x, -movement.z).rotated( + mesh.global_rotation.y + ) + + animation_tree["parameters/walk_space/blend_position"] = lerp( + animation_tree["parameters/walk_space/blend_position"], + relative_motion_vec, + delta_factor * TURN_SENSITIVITY + ) + + super.physics_process(movement, delta) diff --git a/src/npc/mech_enemy/mech_enemy.tscn b/src/npc/mech_enemy/mech_enemy.tscn new file mode 100644 index 0000000..6854d71 --- /dev/null +++ b/src/npc/mech_enemy/mech_enemy.tscn @@ -0,0 +1,140 @@ +[gd_scene load_steps=3 format=3 uid="uid://bv8ifwo8yn6h0"] + +[ext_resource type="PackedScene" uid="uid://b4lueyrglqwou" path="res://src/npc/mech_character/mech_character.tscn" id="1_yyy7d"] +[ext_resource type="Script" path="res://src/npc/mech_enemy/mech_enemy.gd" id="2_35sm4"] + +[node name="MechEnemy" instance=ExtResource("1_yyy7d")] +script = ExtResource("2_35sm4") + +[node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] +bones/1/position = Vector3(0, 0, 6.44963) +bones/3/rotation = Quaternion(0.655318, 0.674701, 0.236741, 0.243497) +bones/4/rotation = Quaternion(0.700913, 0.0561277, 0.0724283, 0.707336) +bones/5/rotation = Quaternion(-0.622137, -0.00141221, -0.101448, 0.776307) +bones/6/rotation = Quaternion(-0.435367, 0.0113862, -0.0628742, 0.897982) +bones/7/rotation = Quaternion(-0.841111, 0.0364847, -0.173989, 0.510812) +bones/11/rotation = Quaternion(-0.837528, 0.0431071, -0.169446, 0.517665) +bones/17/rotation = Quaternion(0.751751, 0.0119582, 0.659221, 0.0124164) +bones/23/rotation = Quaternion(0.90026, 0.00365896, 0.148521, 0.409219) +bones/27/rotation = Quaternion(-0.554655, -0.0057671, -0.103097, 0.825649) +bones/33/rotation = Quaternion(-0.546803, -0.00990093, -0.108157, 0.830187) +bones/35/rotation = Quaternion(-0.633942, 0.00362041, -0.103068, 0.766474) +bones/41/rotation = Quaternion(-0.0147887, 0.935951, 0.351614, 0.012052) +bones/74/rotation = Quaternion(-0.655318, 0.674701, 0.236741, -0.243497) +bones/75/rotation = Quaternion(0.700913, -0.0561277, -0.0724283, 0.707336) +bones/76/rotation = Quaternion(-0.622137, 0.00141222, 0.101448, 0.776307) +bones/77/rotation = Quaternion(-0.435487, -0.0113789, 0.0628807, 0.897924) +bones/78/rotation = Quaternion(-0.841111, -0.0364847, 0.173989, 0.510812) +bones/82/rotation = Quaternion(-0.837528, -0.0431338, 0.169436, 0.517666) +bones/88/rotation = Quaternion(0.751751, -0.0119581, -0.659221, 0.0124166) +bones/94/rotation = Quaternion(0.90026, -0.00365896, -0.148521, 0.409219) +bones/98/rotation = Quaternion(-0.554655, 0.00576716, 0.103097, 0.825649) +bones/102/rotation = Quaternion(-0.546803, 0.00990093, 0.108157, 0.830187) +bones/106/rotation = Quaternion(-0.633942, -0.00362033, 0.103069, 0.766474) +bones/112/rotation = Quaternion(0.0147887, 0.935951, 0.351614, -0.012052) + +[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, 8.15243e-05, 0.000266984, -8.3372e-05, 0.999977, 0.00684005, -0.000266604, -0.00684005, 0.999977, -0.00116396, -0.00804204, 0.00741547) + +[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.000171646, 0.000333548, -0.000173956, 0.999976, 0.00689328, -0.000332527, -0.00689325, 0.999976, -0.00130916, -0.00795108, 0.00750834) + +[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, -9.42089e-05, 5.10663e-05, 9.41716e-05, 1, 0.000179395, -5.126e-05, -0.000179306, 1, -0.000807524, -0.00309205, -1.97291e-05) + +[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.000218436, 0.000100851, -0.000219345, 0.999961, 0.00887147, -9.90629e-05, -0.00887153, 0.999961, -0.000794411, -0.0121249, 0.00163531) + +[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, -7.00727e-05, 0.000201769, 6.96555e-05, 0.999999, 0.00189301, -0.000202052, -0.00189289, 0.999998, -0.000859976, -0.00367588, 0.000106335) + +[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.000183448, 8.84207e-05, 0.000182986, 0.999988, 0.00484095, -8.9508e-05, -0.00484079, 0.999988, -0.000118971, -0.0331991, -0.00279808) + +[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, 0.000100851, 0.000220932, -0.000101998, 0.999987, 0.00508809, -0.000220571, -0.00508812, 0.999987, -0.00118947, -0.00533736, 0.0082829) + +[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, 0.000100851, 0.000220932, -0.000101998, 0.999987, 0.00508809, -0.000220571, -0.00508812, 0.999987, -0.00118947, -0.00533736, 0.0082829) + +[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, -6.2108e-05, 0.000150263, 6.11767e-05, 0.999982, 0.00600073, -0.000150792, -0.0060007, 0.999982, -0.000789881, -0.0091697, 0.00102282) + +[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, -7.37682e-05, 0.000292294, 7.56234e-05, 0.999979, -0.00643742, -0.000291966, 0.00643742, 0.999979, -0.00109243, 0.0179924, -0.00774097) + +[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, 4.42564e-06, -7.06477e-05, -3.98792e-06, 0.999978, 0.00663076, 7.04862e-05, -0.0066307, 0.999978, 0.000469446, -0.0405469, -0.0180073) + +[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, -3.11823e-05, -7.66812e-05, 3.14668e-05, 0.999991, 0.00421292, 7.63605e-05, -0.00421289, 0.999991, 0.000521421, -0.0272557, -0.0192266) + +[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, -0.0225649) + +[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, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.0225649) + +[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, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.0225668) + +[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.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.0225668) + +[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.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.0225668) + +[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.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.0225649) + +[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.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.0225649) + +[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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.0225649) + +[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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.0225649) + +[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, -9.28491e-05, -0.000290528, 9.49651e-05, 0.999976, 0.00710753, 0.000289872, -0.0071075, 0.999975, 0.00117159, -0.00810617, 0.00743663) + +[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.000156343, -0.000307016, 0.000158638, 0.999976, 0.00715417, 0.000305921, -0.00715408, 0.999975, 0.00124764, -0.00808722, 0.00738174) + +[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, 8.28225e-05, -7.45654e-05, -8.27275e-05, 1, 0.000445947, 7.46101e-05, -0.000445843, 1, 0.000813961, -0.00315863, -4.17233e-07) + +[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.00021863, -9.97335e-05, 0.000220224, 0.999961, 0.00887134, 9.74089e-05, -0.00887153, 0.999961, 0.000798225, -0.0121234, 0.00163281) + +[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, 7.01249e-05, -0.000201792, -6.96853e-05, 0.999998, 0.00189301, 0.000201933, -0.00189289, 0.999998, 0.000859499, -0.00367576, 0.000106096) + +[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.000183448, -8.87145e-05, -0.000183001, 0.999988, 0.00484088, 8.96384e-05, -0.00484079, 0.999988, 0.000121832, -0.0331987, -0.0027976) + +[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.000100911, -0.000220999, 0.000102088, 0.999987, 0.00508812, 0.000220489, -0.00508812, 0.999987, 0.00118971, -0.005337, 0.00828314) + +[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.000201032, -0.000222705, 0.000202224, 0.999987, 0.0051221, 0.000221699, -0.00512215, 0.999987, 0.00132918, -0.00529718, 0.00812984) + +[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, 6.17877e-05, -0.000148594, -6.08563e-05, 0.999982, 0.00600111, 0.000148982, -0.00600106, 0.999982, 0.000786304, -0.0091691, 0.00101709) + +[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, 7.37533e-05, -0.00029213, -7.56085e-05, 0.99998, -0.0064376, 0.00029169, 0.00643766, 0.999979, 0.0010922, 0.0179928, -0.00774193) + +[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, -4.64916e-06, 7.04176e-05, 4.20958e-06, 0.999978, 0.00663077, -7.0377e-05, -0.0066307, 0.999978, -0.000468016, -0.0405464, -0.0180073) + +[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.11729e-05, 7.66998e-05, -3.14581e-05, 0.999991, 0.00421292, -7.64991e-05, -0.00421289, 0.999991, -0.000521898, -0.0272552, -0.0192275) + +[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, -0.0225649) + +[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." index="5"] + +[editable path="Mesh/Mech"] diff --git a/src/player/player.gd b/src/player/player.gd index 15ef324..c8e9a32 100644 --- a/src/player/player.gd +++ b/src/player/player.gd @@ -1,31 +1,10 @@ -extends DamageableBody +extends MechCharacter -enum Equipment { - AUTOCANNON, - RIFLE, -} - -const BASE_SPEED: float = 5.0 -const BOOST_FORCE: float = 20.0 -const JUMP_FORCE: float = 8.0 -const INPUT_SENSITIVITY: float = 0.7 -const TURN_SENSITIVITY: float = 0.04 - -@export var _equipment: Equipment = Equipment.AUTOCANNON - -var _weapon: Weapon = null var _heat: float = 0.0 var _damage: float = 0.0 @onready var camera_root: ThirdPersonCamera = $CameraRoot -@onready var mesh: Node3D = $Mesh -@onready var animation_tree: AnimationTree = $Mesh/Mech/AnimationTree @onready var animation_player: AnimationPlayer = $AnimationPlayer -@onready var shadow_listener: ShadowListener = $ShadowListener -@onready var spark_shower: GPUParticles3D = $SparkShower - -@onready var autocannon: Weapon = %WeaponSlot/Autocannon -@onready var rifle: Weapon = %WeaponSlot/Rifle @onready var _crosshair: Crosshair = get_tree().get_first_node_in_group("CrosshairGroup") @onready var _overlay: OverlayEffects = get_tree().get_first_node_in_group("OverlayEffectsGroup") @@ -45,10 +24,6 @@ var structure: int: # gdlint: enable=class-definitions-order -func _ready() -> void: - set_equipment(_equipment) - - func deal_damage(delta: float) -> void: _damage = clamp(_damage + delta, 0.0, 100.0) _damage_meter.value = _damage @@ -63,30 +38,6 @@ func deal_structure(delta: int) -> void: structure += delta -func set_equipment(value: Equipment) -> void: - if _weapon: - _weapon.deactivate() - _weapon.visible = false - _weapon = null - - match value: - Equipment.AUTOCANNON: - _weapon = autocannon - _weapon.visible = true - Equipment.RIFLE: - _weapon = rifle - _weapon.visible = true - - -func is_boosting() -> bool: - return animation_tree["parameters/boost/active"] - - -func shutdown() -> void: - animation_tree["parameters/online_state/transition_request"] = "offline" - spark_shower.emitting = true - - func _physics_process(delta: float) -> void: var delta_factor: float = delta * GameState.TARGET_FPS @@ -109,20 +60,8 @@ func _physics_process(delta: float) -> void: shutdown() # DEBUG BLOCK }}} - var effective_gravity: float = GameState.gravity - if is_boosting(): _crosshair.jostle(Vector2(randf_range(-3, 3), randf_range(-3, 3))) - effective_gravity *= 0.1 - - # Add the gravity. - if not is_on_floor(): - velocity.y -= effective_gravity * delta - animation_tree["parameters/jump_state/transition_request"] = "in_air" - animation_tree["parameters/anim_state/transition_request"] = "air" - elif animation_tree["parameters/anim_state/current_state"] == "air": - # If not on floor but still in jump state, transition back to landing - animation_tree["parameters/jump_state/transition_request"] = "end" # Handle jump. if Input.is_action_just_pressed("jump") and is_on_floor(): @@ -132,10 +71,11 @@ func _physics_process(delta: float) -> void: animation_tree["parameters/boost/request"] = 2 # Abort # Get the input direction and handle the movement/deceleration. + var movement: Vector3 = Vector3.ZERO var input_dir: Vector2 = Input.get_vector("left", "right", "forward", "backward") if input_dir: # Transform movement based on camera angle - var movement: Vector3 = ( + movement = ( ( camera_root.global_transform.basis * Vector3(input_dir.x, 0.0, input_dir.y) @@ -143,20 +83,9 @@ func _physics_process(delta: float) -> void: ) . normalized() ) - if not is_boosting(): - velocity.x = lerpf( - velocity.x, movement.x * BASE_SPEED, delta_factor * INPUT_SENSITIVITY - ) - velocity.z = lerpf( - velocity.z, movement.z * BASE_SPEED, delta_factor * INPUT_SENSITIVITY - ) if Input.is_action_just_pressed("boost"): - velocity.x += movement.x * BOOST_FORCE - velocity.z += movement.z * BOOST_FORCE - velocity.y = 0.0 - mesh.rotation.y = atan2(velocity.x, velocity.z) - animation_tree["parameters/boost/request"] = 1 + boost(movement) _overlay.play_boost() animation_player.play("boost_fov") animation_player.seek(0) @@ -173,12 +102,6 @@ func _physics_process(delta: float) -> void: delta_factor * TURN_SENSITIVITY ) - var drag: float = ( - GameState.FRICTION if (is_on_floor() and not is_boosting()) else GameState.AIR_DRAG - ) - velocity.x = lerpf(velocity.x, 0.0, delta_factor * drag) - velocity.z = lerpf(velocity.z, 0.0, delta_factor * drag) - if Input.is_action_just_pressed("weapon_trigger"): _weapon.trigger() @@ -189,7 +112,7 @@ func _physics_process(delta: float) -> void: if not shadow_listener.in_shadow(): deal_heat(GameState.SOLAR_HEAT_RATE) - move_and_slide() + super.physics_process(movement, delta) func _on_mech_stomp() -> void: diff --git a/src/player/player.tscn b/src/player/player.tscn index d961d89..febc16d 100644 --- a/src/player/player.tscn +++ b/src/player/player.tscn @@ -1,8 +1,15 @@ -[gd_scene load_steps=7 format=3 uid="uid://1jess8uo751x"] +[gd_scene load_steps=12 format=3 uid="uid://1jess8uo751x"] -[ext_resource type="PackedScene" uid="uid://b4lueyrglqwou" path="res://src/npc/mech_character/mech_character.tscn" id="1_ab4bh"] [ext_resource type="Script" path="res://src/player/player.gd" id="1_h16ke"] +[ext_resource type="PackedScene" uid="uid://dd7ebaau8a70n" path="res://assets/models/bipedal_mech/mech.tscn" id="2_xmhab"] [ext_resource type="Script" path="res://src/player/third_person_camera.gd" id="3_gichr"] +[ext_resource type="PackedScene" uid="uid://in6j0ylwrk7l" path="res://src/equip/autocannon/autocannon.tscn" id="3_lh17q"] +[ext_resource type="PackedScene" uid="uid://csm36ra2445ho" path="res://src/equip/rifle/rifle.tscn" id="4_k2wb5"] +[ext_resource type="PackedScene" uid="uid://bg450j3javgoj" path="res://src/util/shadow_listener.tscn" id="5_qc8th"] +[ext_resource type="PackedScene" uid="uid://b0ob0t4rhygcx" path="res://src/effects/spark_shower.tscn" id="6_f0ugf"] + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_otw5j"] +radius = 0.7 [sub_resource type="Animation" id="Animation_ycaf1"] length = 0.001 @@ -40,157 +47,198 @@ _data = { "boost_fov": SubResource("Animation_ss43j") } -[node name="Player" instance=ExtResource("1_ab4bh")] +[node name="Player" type="CharacterBody3D"] script = ExtResource("1_h16ke") +[node name="Mesh" type="Node3D" parent="."] + +[node name="Mech" parent="Mesh" instance=ExtResource("2_xmhab")] +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(0, 0, 6.47172) -bones/3/rotation = Quaternion(0.655809, 0.67515, 0.235457, 0.242171) -bones/4/rotation = Quaternion(0.697301, 0.0563962, 0.0720671, 0.710913) -bones/5/rotation = Quaternion(-0.619068, -0.00145559, -0.101005, 0.778813) -bones/6/rotation = Quaternion(-0.43606, 0.01133, -0.0629296, 0.897643) -bones/7/rotation = Quaternion(-0.839617, 0.0367169, -0.173605, 0.513377) -bones/11/rotation = Quaternion(-0.836003, 0.0433722, -0.169045, 0.520233) -bones/17/rotation = Quaternion(0.751705, 0.0102105, 0.659348, 0.00980827) -bones/23/rotation = Quaternion(0.902427, 0.00360767, 0.148884, 0.404285) -bones/27/rotation = Quaternion(-0.550037, -0.00585511, -0.102457, 0.828811) -bones/33/rotation = Quaternion(-0.542242, -0.00999214, -0.107516, 0.833255) -bones/35/rotation = Quaternion(-0.629322, 0.00354144, -0.102374, 0.770365) -bones/41/rotation = Quaternion(-0.0147561, 0.935559, 0.352656, 0.0120528) -bones/74/rotation = Quaternion(-0.655809, 0.67515, 0.235457, -0.242171) -bones/75/rotation = Quaternion(0.697301, -0.0563962, -0.0720671, 0.710913) -bones/76/rotation = Quaternion(-0.619068, 0.0014556, 0.101005, 0.778813) -bones/77/rotation = Quaternion(-0.436073, -0.0113292, 0.0629303, 0.897637) -bones/78/rotation = Quaternion(-0.839618, -0.0367169, 0.173605, 0.513377) -bones/82/rotation = Quaternion(-0.836003, -0.0433807, 0.169032, 0.520236) -bones/88/rotation = Quaternion(0.751705, -0.0102106, -0.659347, 0.0098083) -bones/94/rotation = Quaternion(0.902427, -0.00360781, -0.148883, 0.404285) -bones/98/rotation = Quaternion(-0.550037, 0.00585516, 0.102457, 0.828811) -bones/102/rotation = Quaternion(-0.542242, 0.00999217, 0.107516, 0.833255) -bones/106/rotation = Quaternion(-0.629322, -0.00354141, 0.102374, 0.770365) -bones/112/rotation = Quaternion(0.0147561, 0.935559, 0.352656, -0.0120528) +bones/1/position = Vector3(0, 0, 6.47089) +bones/1/rotation = Quaternion(0.707107, 0, 0, 0.707107) +bones/3/rotation = Quaternion(0.6558, 0.675142, 0.235482, 0.242196) +bones/4/rotation = Quaternion(0.697314, 0.0564094, 0.0720635, 0.710899) +bones/5/rotation = Quaternion(-0.61908, -0.00145252, -0.101002, 0.778804) +bones/6/rotation = Quaternion(-0.436072, 0.0113283, -0.062929, 0.897637) +bones/7/rotation = Quaternion(-0.839521, 0.036733, -0.173578, 0.513542) +bones/11/rotation = Quaternion(-0.835904, 0.0433958, -0.16901, 0.5204) +bones/17/rotation = Quaternion(0.751733, 0.00973219, 0.659323, 0.00982122) +bones/23/rotation = Quaternion(0.902383, 0.00361275, 0.148896, 0.404378) +bones/27/rotation = Quaternion(-0.550152, -0.00583502, -0.102452, 0.828736) +bones/33/rotation = Quaternion(-0.542259, -0.00998147, -0.107514, 0.833244) +bones/35/rotation = Quaternion(-0.629436, 0.00356592, -0.102369, 0.770272) +bones/41/rotation = Quaternion(-0.0147562, 0.935559, 0.352655, 0.0120528) +bones/50/rotation = Quaternion(0.80296, 2.84212e-07, 3.82883e-07, 0.596033) +bones/51/rotation = Quaternion(0.595723, -0.000239473, 0.000322365, 0.80319) +bones/55/rotation = Quaternion(0.595723, 0.000238707, -0.000321796, 0.80319) +bones/62/rotation = Quaternion(-0.000385918, 2.26638e-14, -0.000401128, 1) +bones/66/rotation = Quaternion(-0.000385918, -2.26638e-14, 0.000401128, 1) +bones/74/rotation = Quaternion(-0.6558, 0.675142, 0.235482, -0.242196) +bones/75/rotation = Quaternion(0.697314, -0.0564094, -0.0720635, 0.710899) +bones/76/rotation = Quaternion(-0.61908, 0.00145253, 0.101002, 0.778804) +bones/77/rotation = Quaternion(-0.436072, -0.0113283, 0.062929, 0.897637) +bones/78/rotation = Quaternion(-0.839521, -0.036733, 0.173578, 0.513542) +bones/82/rotation = Quaternion(-0.835904, -0.0433959, 0.16901, 0.5204) +bones/88/rotation = Quaternion(0.751733, -0.00973181, -0.659323, 0.00982154) +bones/94/rotation = Quaternion(0.902383, -0.00361274, -0.148896, 0.404378) +bones/98/rotation = Quaternion(-0.550152, 0.00584447, 0.102458, 0.828735) +bones/102/rotation = Quaternion(-0.54226, 0.00999097, 0.10752, 0.833243) +bones/106/rotation = Quaternion(-0.629436, -0.00355556, 0.102377, 0.77027) +bones/112/rotation = Quaternion(0.0147562, 0.935559, 0.352655, -0.0120528) +bones/122/rotation = Quaternion(0.993232, -0.00676712, 0.0811637, -0.0828125) +bones/126/rotation = Quaternion(0.993232, 0.00676712, -0.0811637, -0.0828125) [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, 2.10851e-05, -1.32099e-05, -2.10106e-05, 1, 0.00068903, 1.32099e-05, -0.000689149, 1, -1.28746e-05, -0.00129992, 0.00121069) +transform = Transform3D(1, 4.59999e-05, -2.21953e-05, -4.61042e-05, 1, 0.000397772, 2.19792e-05, -0.000397801, 1, 4.33922e-05, -0.00130981, 7.25389e-05) [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, 3.40492e-05, 8.56817e-06, -3.40194e-05, 1, 0.000699282, -8.61287e-06, -0.000699341, 1, -4.29153e-05, -0.00128382, 0.00127566) +transform = Transform3D(1, 5.49257e-05, -2.04071e-05, -5.503e-05, 1, 0.0003995, 2.01911e-05, -0.0003995, 1, 3.38554e-05, -0.00129122, 8.46386e-05) [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, 2.95974e-06, -2.30521e-05, -2.94112e-06, 1, 2.67923e-05, 2.30223e-05, -2.68072e-05, 1, 1.3113e-05, -0.000806451, 0.000513256) +transform = Transform3D(1, 3.76608e-05, -1.46031e-05, -3.77689e-05, 1, 0.000121325, 1.43647e-05, -0.000121325, 1, 4.48227e-05, -0.00110587, -0.000177622) [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, 4.50164e-05, -1.21742e-05, -4.49121e-05, 1, 0.000895787, 1.21742e-05, -0.000895992, 1, 7.39098e-06, -0.00167966, 0.000691175) +transform = Transform3D(0.999999, -0.000251874, -0.000754759, 0.000252143, 1, 0.000456201, 0.000754416, -0.000456432, 0.999999, 0.0011282, -0.00233507, -0.00249398) [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, 5.51343e-06, -9.86457e-06, -5.48363e-06, 1, 0.000196338, 9.85712e-06, -0.000196397, 1, 9.77516e-06, -0.000864625, 0.000519753) +transform = Transform3D(1, 3.7998e-05, -6.72787e-06, -3.80948e-05, 1, 0.000263691, 6.54161e-06, -0.000263661, 1, 4.26769e-05, -0.0011605, -0.000182152) [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.71337e-05, -5.86919e-06, -3.71784e-05, 1, 0.00031836, 5.87013e-06, -0.000318393, 1, 1.90735e-05, -0.00199598, 0.000422478) +transform = Transform3D(1, 2.40505e-05, -2.67141e-05, -2.41846e-05, 1, 0.000560418, 2.64989e-05, -0.000560366, 1, 0.00016427, -0.00327879, -0.000281334) [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.60121e-06, -3.27229e-05, -6.57141e-06, 1, 9.90629e-05, 3.27714e-05, -9.91821e-05, 1, 4.24385e-05, -0.000470161, 0.000449419) +transform = Transform3D(1, 6.2719e-05, 9.23127e-06, -6.28233e-05, 1, 0.000409126, -9.41381e-06, -0.000409126, 1, -3.38554e-05, -0.00117195, 0.000240803) [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.60121e-06, -3.27229e-05, -6.57141e-06, 1, 9.90629e-05, 3.27714e-05, -9.91821e-05, 1, 4.24385e-05, -0.000470161, 0.000449419) +transform = Transform3D(1, 6.2719e-05, 9.23127e-06, -6.28233e-05, 1, 0.000409126, -9.41381e-06, -0.000409126, 1, -3.38554e-05, -0.00117195, 0.000240803) [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, -1.02147e-05, -2.96235e-05, 1.02296e-05, 1, 0.000117362, 2.9631e-05, -0.000117511, 1, 5.62668e-05, -0.000594199, 0.000313997) +transform = Transform3D(1, 5.6006e-05, 1.10567e-05, -5.61476e-05, 1, 0.000448823, -1.12355e-05, -0.000448793, 1, -1.23978e-05, -0.00134939, -8.13007e-05) [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, 9.0152e-07, 1.21742e-05, -8.9407e-07, 1, -0.000160098, -1.21742e-05, 0.000159919, 1, -4.41074e-05, 4.78625e-05, 0.000240803) +transform = Transform3D(1, 2.95416e-05, 4.44055e-06, -2.96608e-05, 1, -0.000121742, -4.64171e-06, 0.000121653, 1, 2.14577e-05, -0.000184834, -0.000524521) [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, 4.16301e-06, -4.27209e-06, -4.16115e-06, 1, 0.000480223, 4.26406e-06, -0.000480156, 1, 2.47955e-05, -0.00291568, -0.000154972) +transform = Transform3D(1, 3.86685e-06, -5.8877e-06, -3.97116e-06, 1, 0.000555713, 5.69283e-06, -0.000555463, 1, 3.60012e-05, -0.00340134, -0.000935078) [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, 1.7196e-06, -4.51e-06, -1.71947e-06, 1, 0.000290126, 4.50133e-06, -0.000290096, 1, 2.81334e-05, -0.0018689, -0.000247955) +transform = Transform3D(1, 1.36785e-06, -6.15547e-06, -1.47277e-06, 1, 0.000364095, 5.96701e-06, -0.000363976, 1, 3.93391e-05, -0.00234622, -0.00102854) [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, -0.000473976) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.00131273) [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, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.000473976) +transform = Transform3D(1, 7.18899e-10, -2.01781e-08, -7.60139e-10, 1, -1.49128e-07, 2.01603e-08, 1.78756e-07, 1, -1.19209e-07, -1.43051e-06, -0.00131321) [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, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.000475883) +transform = Transform3D(1, 3.15225e-10, 2.16325e-08, -3.11474e-10, 1, -1.19326e-07, -2.16737e-08, 1.78814e-07, 1, 1.19209e-07, -1.90735e-06, -0.00131512) [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.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.000475883) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.00131512) + +[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 +transform = Transform3D(1, 1.42109e-14, -4.74338e-20, -1.42109e-14, 1, 1.7053e-13, -3.38813e-20, -1.7053e-13, 1, 0, 0, 0) + +[node name="Autocannon" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0/WeaponSlot" node_paths=PackedStringArray("excluded") instance=ExtResource("3_lh17q")] +transform = Transform3D(1, -7.45389e-20, -2.84217e-14, -2.84217e-14, -4.37115e-08, -1, 1.35525e-20, 1, -4.37115e-08, -1.61931, -4.00469, 7.83282) +visible = false +excluded = [NodePath("../../../../../../../../../../../..")] + +[node name="Rifle" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0/WeaponSlot" instance=ExtResource("4_k2wb5")] +transform = Transform3D(1, 6.97955e-19, 1.77636e-13, 0, -4.37112e-08, -1, -1.35525e-20, 1, -4.37112e-08, -2.90254, -1.10442, 10.4782) +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.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.000475883) +transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -9.23872e-07, 3.41061e-13, 9.23872e-07, 1, -9.09153e-13, 4.52995e-06, -0.00131512) [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.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.000473976) +transform = Transform3D(1, 1.08827e-10, -1.00637e-08, -1.10077e-10, 1, -2.82656e-07, 1.00761e-08, 2.82598e-07, 1, -2.38419e-07, 0, -0.00131226) [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.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.000473976) +transform = Transform3D(1, -1.08827e-10, 1.00637e-08, 1.10077e-10, 1, -2.82656e-07, -1.00761e-08, 2.82598e-07, 1, 2.38419e-07, 0, -0.00131226) [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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.000473976) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.00131273) [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.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.000473976) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.00131273) [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, -2.22176e-05, 1.07959e-05, 2.22027e-05, 1, 0.000719965, -1.0781e-05, -0.000719965, 1, 1.43051e-05, -0.0013085, 0.0012148) +transform = Transform3D(1, -4.6134e-05, 2.22698e-05, 4.61936e-05, 1, 0.000398785, -2.20388e-05, -0.000398815, 1, -4.24385e-05, -0.00130969, 7.28965e-05) [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, -3.9041e-05, 1.83955e-05, 3.89516e-05, 1, 0.000719965, -1.83582e-05, -0.000719905, 1, 2.36034e-05, -0.00127405, 0.00118673) +transform = Transform3D(1, -5.49406e-05, 2.04146e-05, 5.50449e-05, 1, 0.00039953, -2.01538e-05, -0.000399619, 1, -3.31402e-05, -0.00129157, 8.41022e-05) [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.12203e-06, 2.05487e-05, 4.0736e-06, 1, 5.52833e-05, -2.04742e-05, -5.52982e-05, 1, -1.26362e-05, -0.000813827, 0.000515759) +transform = Transform3D(1, -3.76217e-05, 1.46478e-05, 3.77577e-05, 1, 0.00012134, -1.43796e-05, -0.0001214, 1, -4.50611e-05, -0.00110601, -0.00017792) [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, -4.53293e-05, 1.26809e-05, 4.59999e-05, 1, 0.000895657, -1.31279e-05, -0.000895919, 1, -2.86102e-06, -0.00167745, 0.000691295) +transform = Transform3D(1, 0.000252172, 0.000756145, -0.000251666, 1, 0.000456113, -0.000756219, -0.000456406, 1, -0.00112438, -0.00233483, -0.00249743) [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, -5.51343e-06, 9.86457e-06, 5.46128e-06, 1, 0.000196368, -9.82732e-06, -0.000196368, 1, -1.0252e-05, -0.000864327, 0.000519991) +transform = Transform3D(1, -3.79533e-05, 6.74278e-06, 3.80799e-05, 1, 0.000263691, -6.52671e-06, -0.000263661, 1, -4.26769e-05, -0.00116032, -0.000182629) [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, -3.71188e-05, 5.32204e-06, 3.71188e-05, 1, 0.000318322, -5.34207e-06, -0.000318382, 1, -1.57356e-05, -0.00199607, 0.000423908) +transform = Transform3D(1, -2.40654e-05, 2.64579e-05, 2.41399e-05, 1, 0.000560321, -2.62694e-05, -0.000560328, 1, -0.000161886, -0.00327843, -0.000280857) [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, -6.69062e-06, 3.26484e-05, 6.63102e-06, 1, 9.91523e-05, -3.26633e-05, -9.92119e-05, 1, -4.22001e-05, -0.000470638, 0.000450611) +transform = Transform3D(1, -4.78923e-05, 7.24196e-06, 4.79817e-05, 1, 0.000412047, -7.0706e-06, -0.000412226, 1, -2.0504e-05, -0.00122976, 0.000188351) [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, -1.91182e-05, -3.08082e-06, 1.91033e-05, 1, 0.000332564, 3.10317e-06, -0.000332654, 1, 4.91142e-05, -0.000925541, 0.000899553) +transform = Transform3D(1, -5.10514e-05, 6.69807e-06, 5.11855e-05, 1, 0.000414401, -6.54534e-06, -0.000414491, 1, -1.52588e-05, -0.00123966, 0.000189304) [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.01253e-05, 2.94521e-05, -1.01402e-05, 1, 0.00011763, -2.94372e-05, -0.000117689, 1, -5.62668e-05, -0.000594437, 0.000314474) +transform = Transform3D(1, -3.85419e-05, 8.40425e-06, 3.86238e-05, 1, 0.000452191, -8.20309e-06, -0.00045225, 1, -4.31538e-05, -0.00141144, -0.000139713) [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, -9.23872e-07, -1.20103e-05, 8.9407e-07, 1, -0.000160247, 1.20401e-05, 0.000160158, 1, 4.36306e-05, 4.84586e-05, 0.000240803) +transform = Transform3D(1, -2.9549e-05, -4.29153e-06, 2.96533e-05, 1, -0.000121891, 4.51505e-06, 0.000121862, 1, -2.12193e-05, -0.000184238, -0.000524521) [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, -4.41074e-06, 4.06173e-06, 4.3828e-06, 1, 0.000480231, -4.03426e-06, -0.000480101, 1, -2.36034e-05, -0.00291514, -0.000154495) +transform = Transform3D(1, -4.08664e-06, 5.64649e-06, 4.19654e-06, 1, 0.00055572, -5.44905e-06, -0.000555467, 1, -3.43323e-05, -0.00340074, -0.000935078) [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, -1.75192e-06, 4.54756e-06, 1.72826e-06, 1, 0.000290126, -4.51878e-06, -0.000290036, 1, -2.86102e-05, -0.00186843, -0.000248432) +transform = Transform3D(1, -1.37716e-06, 6.1741e-06, 1.48156e-06, 1, 0.000364095, -5.98631e-06, -0.000363976, 1, -3.98159e-05, -0.00234574, -0.00102901) [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, -0.000473976) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.00131273) -[node name="CameraRoot" type="Node3D" parent="." index="5"] +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) +shape = SubResource("CapsuleShape3D_otw5j") + +[node name="ShadowListener" parent="." instance=ExtResource("5_qc8th")] + +[node name="SparkShower" parent="." instance=ExtResource("6_f0ugf")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) + +[node name="GPUParticlesCollisionBox3D" type="GPUParticlesCollisionBox3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0) +size = Vector3(10, 1, 10) + +[node name="CameraRoot" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 2, 0) script = ExtResource("3_gichr") -[node name="AimCast" type="RayCast3D" parent="CameraRoot" index="0" groups=["AimCastGroup"]] +[node name="AimCast" type="RayCast3D" parent="CameraRoot" groups=["AimCastGroup"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 1) target_position = Vector3(0, 0, 1000) -[node name="SpringArm3D" type="SpringArm3D" parent="CameraRoot" index="1"] +[node name="SpringArm3D" type="SpringArm3D" parent="CameraRoot"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 0) spring_length = -1.5 -[node name="Camera3D" type="Camera3D" parent="CameraRoot/SpringArm3D" index="0"] +[node name="Camera3D" type="Camera3D" parent="CameraRoot/SpringArm3D"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -1.5) current = true -[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="6"] +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_pg8yw") } +[connection signal="stomp" from="Mesh/Mech" to="." method="_on_mech_stomp"] + [editable path="Mesh/Mech"]