generated from krampus/template-godot4
Mech enemy with basic target tracking
This commit is contained in:
parent
57bdf383db
commit
f43d3b12a6
|
@ -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)
|
||||
|
|
|
@ -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"),
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
|
@ -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"]
|
|
@ -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:
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue