From edc0c856c951385d41c8452f541fadf4403b21fb Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Mon, 22 Jul 2024 17:37:09 -0600 Subject: [PATCH] Fixed camera movement vector transformation --- assets/models/bipedal_mech/mech.tscn | 118 +++++++++++++-------------- src/player/player.gd | 6 +- 2 files changed, 64 insertions(+), 60 deletions(-) diff --git a/assets/models/bipedal_mech/mech.tscn b/assets/models/bipedal_mech/mech.tscn index dbfdb20..add74ce 100644 --- a/assets/models/bipedal_mech/mech.tscn +++ b/assets/models/bipedal_mech/mech.tscn @@ -903,43 +903,43 @@ parameters/walk_scale/scale = 1.0 parameters/walk_space/blend_position = Vector2(0, 0) [node name="Skeleton3D" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(0, 0, 6.37364) +bones/1/position = Vector3(0, 0, 6.43894) bones/1/rotation = Quaternion(0.707107, 0, 0, 0.707107) bones/2/rotation = Quaternion(1.54543e-08, 1.54543e-08, -0.707107, 0.707107) -bones/3/rotation = Quaternion(0.653714, 0.673239, 0.240869, 0.247769) +bones/3/rotation = Quaternion(0.655129, 0.67453, 0.23723, 0.244005) bones/3/scale = Vector3(1, 1, 1) -bones/4/rotation = Quaternion(0.713785, 0.0552669, 0.0738382, 0.694266) +bones/4/rotation = Quaternion(0.702814, 0.0559849, 0.0726181, 0.70544) bones/4/scale = Vector3(1, 1, 1) -bones/5/rotation = Quaternion(-0.633085, -0.00125388, -0.103056, 0.767191) +bones/5/rotation = Quaternion(-0.623752, -0.00138589, -0.101689, 0.774978) bones/5/scale = Vector3(1, 1, 1) -bones/6/rotation = Quaternion(-0.433317, 0.0115591, -0.0626666, 0.898986) -bones/7/rotation = Quaternion(-0.843801, 0.0360524, -0.174691, 0.506146) +bones/6/rotation = Quaternion(-0.435132, 0.0114066, -0.0628555, 0.898098) +bones/7/rotation = Quaternion(-0.841702, 0.0363893, -0.174146, 0.509792) bones/7/scale = Vector3(1, 1, 1) bones/9/rotation = Quaternion(-0.577893, -0.0977404, -0.0868737, 0.805568) -bones/11/rotation = Quaternion(-0.840274, 0.0426539, -0.170183, 0.51299) +bones/11/rotation = Quaternion(-0.838131, 0.0430192, -0.169604, 0.516643) bones/11/scale = Vector3(1, 1, 1) bones/13/rotation = Quaternion(-0.583833, -0.0928994, -0.0936977, 0.80108) bones/13/scale = Vector3(1, 1, 1) bones/15/rotation = Quaternion(0.993231, -0.0067672, 0.0811647, 0.0828119) bones/15/scale = Vector3(1, 1, 1) -bones/17/rotation = Quaternion(0.751623, 0.0138178, 0.659265, 0.0155185) +bones/17/rotation = Quaternion(0.751736, 0.0126595, 0.659205, 0.0134827) bones/17/scale = Vector3(1, 1, 1) bones/19/rotation = Quaternion(-0.399104, -0.525183, -0.304683, 0.687072) bones/19/scale = Vector3(0.999999, 1, 1) bones/21/rotation = Quaternion(0.855906, -0.0322478, 0.0593455, 0.512701) -bones/23/rotation = Quaternion(0.889933, 0.00334601, 0.146944, 0.431759) +bones/23/rotation = Quaternion(0.898974, 0.00365362, 0.148309, 0.412113) bones/23/scale = Vector3(1, 1, 1) bones/25/rotation = Quaternion(-0.715396, -0.0713077, -0.0634678, 0.692168) bones/25/scale = Vector3(1, 1, 1) -bones/27/rotation = Quaternion(-0.570591, -0.00549339, -0.105353, 0.814431) +bones/27/rotation = Quaternion(-0.557024, -0.00572898, -0.10343, 0.824011) bones/29/rotation = Quaternion(0.808854, -0.0303334, 0.0651724, 0.583599) bones/31/rotation = Quaternion(0.808854, -0.0303334, 0.0651724, 0.583599) -bones/33/rotation = Quaternion(-0.562889, -0.0095964, -0.110381, 0.819073) -bones/35/rotation = Quaternion(-0.650008, 0.00383525, -0.105507, 0.752557) +bones/33/rotation = Quaternion(-0.549194, -0.00986086, -0.108481, 0.828566) +bones/35/rotation = Quaternion(-0.636318, 0.00364641, -0.103423, 0.764454) bones/35/scale = Vector3(1, 1, 1) bones/37/scale = Vector3(1, 1, 1) bones/39/scale = Vector3(1, 1, 1) -bones/41/rotation = Quaternion(-0.0148957, 0.93753, 0.347375, 0.012059) +bones/41/rotation = Quaternion(-0.0148044, 0.936138, 0.351115, 0.0120516) bones/41/scale = Vector3(1, 1, 1) bones/43/rotation = Quaternion(-0.015884, 0.718179, -0.69565, -0.00621676) bones/43/scale = Vector3(1, 1, 1) @@ -962,37 +962,37 @@ bones/66/rotation = Quaternion(-0.000385918, -2.26638e-14, 0.000401128, 1) bones/68/rotation = Quaternion(-0.706834, 0.000283644, -0.000283644, 0.70738) bones/70/rotation = Quaternion(-0.707107, 4.67924e-24, 4.67924e-24, 0.707107) bones/73/rotation = Quaternion(1.54543e-08, -1.54543e-08, 0.707107, 0.707107) -bones/74/rotation = Quaternion(-0.653726, 0.673249, 0.24084, -0.247739) +bones/74/rotation = Quaternion(-0.655129, 0.67453, 0.23723, -0.244005) bones/74/scale = Vector3(1, 1, 1) -bones/75/rotation = Quaternion(0.713791, -0.0552672, -0.0738397, 0.694259) +bones/75/rotation = Quaternion(0.702814, -0.0559849, -0.0726181, 0.70544) bones/75/scale = Vector3(1, 1, 1) -bones/76/rotation = Quaternion(-0.633103, 0.00125352, 0.103058, 0.767175) +bones/76/rotation = Quaternion(-0.623752, 0.0013859, 0.101689, 0.774978) bones/76/scale = Vector3(1, 1, 1) -bones/77/rotation = Quaternion(-0.433317, -0.0115592, 0.0626666, 0.898986) +bones/77/rotation = Quaternion(-0.435117, -0.0114121, 0.0628525, 0.898105) bones/77/scale = Vector3(1, 1, 1) -bones/78/rotation = Quaternion(-0.843799, -0.0360525, 0.174691, 0.506149) +bones/78/rotation = Quaternion(-0.841702, -0.0363893, 0.174146, 0.509792) bones/78/scale = Vector3(1, 1, 1) -bones/82/rotation = Quaternion(-0.840274, -0.0426539, 0.170183, 0.51299) +bones/82/rotation = Quaternion(-0.838131, -0.0430141, 0.169605, 0.516643) bones/82/scale = Vector3(1, 1, 1) bones/84/rotation = Quaternion(-0.583833, 0.0928994, 0.0936978, 0.80108) bones/86/rotation = Quaternion(0.993231, 0.0067672, -0.0811647, 0.0828119) bones/86/scale = Vector3(1, 1, 1) -bones/88/rotation = Quaternion(0.751623, -0.0138178, -0.659265, 0.0155186) +bones/88/rotation = Quaternion(0.751736, -0.0126594, -0.659205, 0.0134828) bones/92/rotation = Quaternion(0.855906, 0.0322478, -0.0593455, 0.512701) bones/92/scale = Vector3(1, 1, 1) -bones/94/rotation = Quaternion(0.889933, -0.00334604, -0.146944, 0.431759) +bones/94/rotation = Quaternion(0.898974, -0.00365361, -0.148309, 0.412113) bones/94/scale = Vector3(1, 1, 1) bones/96/rotation = Quaternion(-0.715396, 0.0713076, 0.0634679, 0.692168) -bones/98/rotation = Quaternion(-0.57059, 0.00549343, 0.105353, 0.81443) +bones/98/rotation = Quaternion(-0.557024, 0.00572899, 0.10343, 0.824011) bones/100/rotation = Quaternion(0.808854, 0.0303333, -0.0651724, 0.583599) -bones/102/rotation = Quaternion(-0.562889, 0.00959652, 0.110381, 0.819073) +bones/102/rotation = Quaternion(-0.549194, 0.00986088, 0.108481, 0.828566) bones/102/scale = Vector3(1, 1, 1) bones/104/rotation = Quaternion(0.803479, 0.0249214, -0.0691385, 0.590779) -bones/106/rotation = Quaternion(-0.650008, -0.00383527, 0.105507, 0.752558) +bones/106/rotation = Quaternion(-0.636318, -0.00364641, 0.103423, 0.764454) bones/106/scale = Vector3(1, 1, 1) bones/108/scale = Vector3(1, 1, 1) bones/110/rotation = Quaternion(0.346017, 0.0755612, -0.0156624, 0.935049) -bones/112/rotation = Quaternion(0.0148958, 0.937528, 0.347382, -0.0120588) +bones/112/rotation = Quaternion(0.0148044, 0.936138, 0.351115, -0.0120516) bones/112/scale = Vector3(1, 1, 1) bones/114/rotation = Quaternion(0.015884, 0.718179, -0.69565, 0.00621692) bones/114/scale = Vector3(1, 1, 1) @@ -1008,106 +1008,106 @@ bones/126/rotation = Quaternion(0.993232, 0.00676712, -0.0811637, -0.0828125) bones/126/scale = Vector3(1, 1, 0.999988) [node name="Plane_009_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(0.999999, 0.000326186, 0.00129709, -0.00034903, 0.999845, 0.0176591, -0.00129117, -0.0176598, 0.999843, -0.00565934, -0.0141812, 0.0220485) +transform = Transform3D(1, 0.000105888, 0.000415973, -0.000109613, 0.99996, 0.00902018, -0.000414915, -0.0090203, 0.99996, -0.00177789, -0.00742072, 0.0103778) [node name="Plane_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(0.999999, 0.000490591, 0.00140177, -0.000515416, 0.999842, 0.0177909, -0.00139283, -0.0177918, 0.999841, -0.0059104, -0.0141432, 0.0220526) +transform = Transform3D(1, 0.00020279, 0.000465073, -0.000207022, 0.999959, 0.00908864, -0.000463121, -0.00908884, 0.999959, -0.00191522, -0.00736612, 0.0103735) [node name="Cube_016_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(1, -0.000125909, 0.000679821, 0.00012587, 1, 0.000112474, -0.000679895, -0.000112548, 1, -0.0046916, -0.00126263, 0.00222766) +transform = Transform3D(1, -0.00013073, 0.000107899, 0.000130754, 1, -2.42442e-05, -0.000107795, 2.41697e-05, 1, -0.00128341, -0.000706151, 0.000222653) [node name="Plane_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999999, -0.000192225, 0.000914857, 0.00017333, 0.999788, 0.0206144, -0.000918657, -0.0206146, 0.999787, -0.00448513, -0.0228672, 0.0056349) +transform = Transform3D(0.999999, 0.000192791, 0.000193834, -0.000195041, 0.999931, 0.0117461, -0.000191465, -0.0117461, 0.999931, -0.00127149, -0.0133229, 0.00258374) [node name="Cube_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(0.999999, -0.000119992, 0.00119759, 0.000112355, 0.99998, 0.00640932, -0.00119836, -0.00640932, 0.999979, -0.00488758, -0.00365049, 0.00258589) +transform = Transform3D(1, -0.000100583, 0.000307545, 9.99421e-05, 0.999998, 0.00221485, -0.000307634, -0.00221476, 0.999998, -0.00135326, -0.00147247, 0.00039649) [node name="Plane_011_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(1, -0.000686318, -0.000593068, 0.000704035, 0.99954, 0.0303295, 0.000571982, -0.0303299, 0.99954, 0.00421429, -0.18349, -0.00784683) +transform = Transform3D(1, -0.000283122, 7.0137e-05, 0.000282615, 0.999973, 0.0072986, -7.20639e-05, -0.00729846, 0.999973, 8.55923e-05, -0.0488498, -0.00386429) [node name="Plane_002_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(0.999999, 0.000570208, 0.00132574, -0.000596762, 0.999797, 0.0201657, -0.00131392, -0.0201666, 0.999796, -0.00632548, -0.0102787, 0.0388732) +transform = Transform3D(1, 0.000135332, 0.000353441, -0.000137791, 0.999976, 0.00699866, -0.000352304, -0.00699875, 0.999976, -0.00186133, -0.00399125, 0.0127468) [node name="Plane_013_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(0.999999, 0.000570208, 0.00132574, -0.000596762, 0.999797, 0.0201657, -0.00131392, -0.0201666, 0.999796, -0.00632548, -0.0102787, 0.0388732) +transform = Transform3D(1, 0.000135332, 0.000353441, -0.000137791, 0.999976, 0.00699866, -0.000352304, -0.00699875, 0.999976, -0.00186133, -0.00399125, 0.0127468) [node name="Cube_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(0.999999, -0.000175513, 0.00102662, 0.000150189, 0.999697, 0.0246311, -0.0010306, -0.024631, 0.999696, -0.00464439, -0.0279937, 0.00743484) +transform = Transform3D(1, -0.000120796, 0.00025472, 0.000118673, 0.999965, 0.00839111, -0.00025554, -0.00839102, 0.999965, -0.00127983, -0.00981402, 0.00187659) [node name="Plane_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(0.999999, -9.39518e-05, 0.0015967, 0.000142798, 0.999532, -0.0305907, -0.00159306, 0.0305907, 0.999531, -0.00595021, 0.0929351, -0.0313444) +transform = Transform3D(1, -0.000112116, 0.000450656, 0.00011678, 0.999947, -0.0103254, -0.0004493, 0.0103254, 0.999947, -0.00171494, 0.0311432, -0.0113397) [node name="Cube_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -7.13579e-06, -0.00032426, 1.6341e-05, 0.999599, 0.0283224, 0.000323951, -0.0283225, 0.999599, 0.00213623, -0.172078, -0.0777879) +transform = Transform3D(1, 4.22448e-06, -9.52923e-05, -3.3211e-06, 0.999958, 0.00919435, 9.54657e-05, -0.00919415, 0.999958, 0.000637293, -0.0561044, -0.026916) [node name="Cube_012_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -0.000144285, -0.000312521, 0.000149562, 0.999858, 0.0168595, 0.000310066, -0.0168595, 0.999858, 0.00213599, -0.109047, -0.0845208) +transform = Transform3D(1, -4.75366e-05, -0.000104378, 4.8159e-05, 0.999984, 0.00571197, 0.000104247, -0.00571188, 0.999984, 0.000712633, -0.0369665, -0.0287123) [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.0985565) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.0332627) [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.0985575) +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.0332632) [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.0985584) +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.0332651) [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.0985584) +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.0332651) [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.0985584) +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.0332651) [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.0985565) +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.0332623) [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.0985565) +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.0332623) [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.0985565) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.0332627) [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.0985565) +transform = Transform3D(1, -2.64698e-23, 9.95068e-31, 2.64698e-23, 1, 0, -9.95068e-31, 0, 1, -1.90621e-29, 0, -0.0332627) [node name="Plane_006_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(0.999999, -0.000327781, -0.00130312, 0.000350624, 0.999846, 0.0175931, 0.00129718, -0.0175936, 0.999845, 0.00568652, -0.0136532, 0.0220502) +transform = Transform3D(1, -0.000113353, -0.000408009, 0.000116989, 0.999961, 0.00898716, 0.000406854, -0.00898725, 0.99996, 0.00177479, -0.00738484, 0.0103601) [node name="Plane_008_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(0.999999, -0.00049229, -0.0014078, 0.000517204, 0.999844, 0.0177317, 0.00139886, -0.0177324, 0.999842, 0.00593758, -0.0136208, 0.0220608) +transform = Transform3D(1, -0.000216767, -0.00046543, 0.000220954, 0.99996, 0.00905472, 0.000463381, -0.00905496, 0.999959, 0.00192547, -0.00731212, 0.0103785) [node name="Cube_004_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(1, 0.000123784, -0.000685081, -0.000123741, 1, 5.27799e-05, 0.000685096, -5.27054e-05, 1, 0.00471759, -0.000737727, 0.00223419) +transform = Transform3D(1, 0.000123439, -9.99272e-05, -0.000123499, 1, -5.8502e-05, 9.98378e-05, 5.83678e-05, 1, 0.00127912, -0.00067021, 0.000204682) [node name="Plane_005_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(1, 0.000189975, -0.000919573, -0.00017029, 0.999789, 0.0205546, 0.000922814, -0.0205547, 0.999788, 0.00451612, -0.0223408, 0.00563908) +transform = Transform3D(1, -0.000193045, -0.000193119, 0.000195906, 0.999932, 0.0117458, 0.000190333, -0.0117461, 0.999931, 0.00127649, -0.0133215, 0.00258327) [node name="Cube_003_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(0.999999, 0.000117995, -0.00120296, -0.000110351, 0.99998, 0.00634953, 0.00120369, -0.00634944, 0.999979, 0.00491333, -0.00312567, 0.00259256) +transform = Transform3D(1, 0.000100568, -0.000307545, -9.99421e-05, 0.999998, 0.00221488, 0.000307657, -0.00221488, 0.999998, 0.00135326, -0.00147247, 0.000397205) [node name="Plane_007_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(1, 0.000684455, 0.000587639, -0.000701874, 0.999543, 0.030221, -0.000566705, -0.0302215, 0.999543, -0.00418591, -0.182835, -0.00790739) +transform = Transform3D(1, 0.000283048, -7.03945e-05, -0.000282571, 0.999973, 0.00729857, 7.23517e-05, -0.00729858, 0.999973, -8.27312e-05, -0.0488494, -0.00386286) [node name="Plane_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(0.999999, -0.000572205, -0.00133083, 0.000598803, 0.999799, 0.0200586, 0.00131904, -0.0200596, 0.999798, 0.00635123, -0.00963521, 0.0388315) +transform = Transform3D(1, -0.000135511, -0.000353549, 0.00013794, 0.999976, 0.00699863, 0.000352446, -0.00699878, 0.999975, 0.00186205, -0.00399101, 0.0127482) [node name="Plane_010_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(0.999999, -0.000975206, -0.00137603, 0.00100283, 0.999796, 0.0202067, 0.00135603, -0.0202081, 0.999795, 0.00698924, -0.00952244, 0.0382247) +transform = Transform3D(1, -0.000273213, -0.000367314, 0.000275791, 0.999976, 0.00704646, 0.000365257, -0.00704667, 0.999975, 0.00207663, -0.00395012, 0.0125377) [node name="Cube_014_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(0.999999, 0.000173435, -0.00103183, -0.000148036, 0.999699, 0.0245241, 0.00103575, -0.0245239, 0.999698, 0.00467014, -0.0273458, 0.00739121) +transform = Transform3D(1, 0.00012061, -0.000254907, -0.000118464, 0.999965, 0.00839165, 0.000255771, -0.00839168, 0.999965, 0.00128031, -0.00981426, 0.00187802) [node name="Plane_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(0.999999, 9.17837e-05, -0.00160148, -0.00014089, 0.999529, -0.0306979, 0.0015979, 0.030698, 0.999527, 0.00597525, 0.0935865, -0.0313759) +transform = Transform3D(1, 0.000112072, -0.000450492, -0.000116728, 0.999947, -0.0103255, 0.000449188, 0.0103256, 0.999947, 0.00171494, 0.0311436, -0.0113392) [node name="Cube_015_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 6.04987e-06, 0.000321284, -1.51061e-05, 0.999602, 0.0282199, -0.000320981, -0.0282199, 0.999602, -0.00211668, -0.171427, -0.077877) +transform = Transform3D(1, -4.47221e-06, 9.50785e-05, 3.57442e-06, 0.999958, 0.00919435, -9.52416e-05, -0.00919427, 0.999958, -0.000635862, -0.0561038, -0.0269156) [node name="Cube_001_Material_0" parent="Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 0.000143678, 0.000310174, -0.00014885, 0.99986, 0.0167705, -0.000307718, -0.0167706, 0.99986, -0.00212073, -0.108472, -0.0845981) +transform = Transform3D(1, 4.75025e-05, 0.000104413, -4.81224e-05, 0.999984, 0.00571197, -0.000104268, -0.00571197, 0.999984, -0.00071311, -0.0369658, -0.0287127) [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.0985565) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, 0, -0.0332627) diff --git a/src/player/player.gd b/src/player/player.gd index 7a671f7..03a43d3 100644 --- a/src/player/player.gd +++ b/src/player/player.gd @@ -35,7 +35,11 @@ func _physics_process(delta: float) -> void: var input_dir: Vector2 = Input.get_vector("left", "right", "forward", "backward") if input_dir: var movement: Vector3 = ( - (camera_root.global_transform.basis * Vector3(input_dir.x, 0, input_dir.y) * -1) + ( + camera_root.global_transform.basis + * Vector3(input_dir.x, 0.0, input_dir.y) + * Vector3(-1.0, 0.0, -1.0) + ) . normalized() ) velocity.x = lerpf(velocity.x, movement.x * BASE_SPEED, delta_factor * INPUT_SENSITIVITY)