remove DebugCollisionShape

This commit is contained in:
2025-08-29 19:23:34 +10:00
parent 5b391cba27
commit 896e187aa2
10 changed files with 126 additions and 221 deletions

View File

@@ -1,7 +1,6 @@
[gd_scene load_steps=50 format=3 uid="uid://b73y71y3efmv"]
[gd_scene load_steps=49 format=3 uid="uid://b73y71y3efmv"]
[ext_resource type="Script" uid="uid://bvvmaqn1fp6nq" path="res://scripts/gameplay/player/player.gd" id="1_xt3i8"]
[ext_resource type="Material" uid="uid://cc18ee0wbfoud" path="res://resources/materials/debug/debug_player.tres" id="2_0p422"]
[ext_resource type="PackedScene" uid="uid://c7odkr2qcnn74" path="res://assets/models/characters/batrix/batrix.gltf" id="3_f1ej7"]
[ext_resource type="Script" uid="uid://dqxvdi3i2ejs" path="res://scripts/gameplay/player/player_animator.gd" id="4_adlgp"]
[ext_resource type="Material" uid="uid://bdi02rpvdukem" path="res://resources/materials/debug/debug_attack.tres" id="4_ll2ct"]
@@ -140,15 +139,14 @@ is_hemisphere = true
collision_layer = 16
script = ExtResource("1_xt3i8")
cursor_color = Color(0.964706, 0.870588, 0.917647, 1)
_collision_debug_material = ExtResource("2_0p422")
attack = NodePath("Attacker")
_cursor = NodePath("PlayerCursor")
[node name="Model" parent="." instance=ExtResource("3_f1ej7")]
[node name="Skeleton3D" parent="Model/Armature" index="0"]
bones/0/position = Vector3(-0.562353, 1.02909, -0.0295568)
bones/0/rotation = Quaternion(0.651689, -0.160294, -0.72656, -0.147369)
bones/0/position = Vector3(-0.537868, 1.0281, -0.10541)
bones/0/rotation = Quaternion(0.729026, -0.0928637, -0.672933, -0.0840203)
bones/0/scale = Vector3(1, 1, 1)
bones/1/position = Vector3(-9.75365e-05, 0.0319142, -0.124525)
bones/1/rotation = Quaternion(-0.000141591, 0.789452, 0.613812, 0.000224233)
@@ -156,55 +154,55 @@ bones/1/scale = Vector3(1, 1, 1)
bones/2/rotation = Quaternion(6.24507e-10, 4.41808e-08, -6.03351e-10, 1)
bones/2/scale = Vector3(1, 1, 1)
bones/3/rotation = Quaternion(1.74623e-10, -2.60798e-10, -1.30968e-10, 1)
bones/4/position = Vector3(0.0395489, 0.922358, -0.0309934)
bones/4/rotation = Quaternion(0.199541, -0.0172146, 0.108334, 0.97373)
bones/4/position = Vector3(-0.0213358, 0.931413, -0.0438835)
bones/4/rotation = Quaternion(0.257992, -0.279597, -0.042176, 0.923844)
bones/5/position = Vector3(6.05363e-09, 0.111695, -8.19564e-08)
bones/5/rotation = Quaternion(0.0751463, -0.213389, 0.0630106, 0.972033)
bones/6/rotation = Quaternion(-0.418354, -0.158176, 0.035741, 0.893691)
bones/7/rotation = Quaternion(0.346412, 0.0499721, -0.310057, 0.883949)
bones/5/rotation = Quaternion(0.0662777, -0.131196, 0.198453, 0.969026)
bones/6/rotation = Quaternion(-0.419054, -0.137958, 0.0262865, 0.897034)
bones/7/rotation = Quaternion(0.329718, 0.258561, -0.27923, 0.863981)
bones/7/scale = Vector3(1, 1, 1)
bones/8/rotation = Quaternion(-0.243101, 0.356278, 0.097571, 0.89691)
bones/8/rotation = Quaternion(-0.215187, 0.315493, 0.125256, 0.91568)
bones/9/rotation = Quaternion(1.13474e-07, 0.707107, 0.707107, -5.23149e-08)
bones/10/scale = Vector3(1, 1, 1)
bones/11/position = Vector3(-0.00838084, -5.53572e-08, -0.00270461)
bones/11/scale = Vector3(0.838477, 1, 1)
bones/11/position = Vector3(-0.00968189, -1.10066e-08, -0.00662707)
bones/11/scale = Vector3(1.08891, 1, 1)
bones/12/position = Vector3(-0.00823868, 6.83734e-08, -0.0102097)
bones/13/position = Vector3(-0.0170013, 2.75124e-08, 0.00929146)
bones/13/scale = Vector3(0.838477, 1, 1)
bones/14/position = Vector3(-0.0277247, -2.94481e-09, 0.000669371)
bones/14/scale = Vector3(0.838477, 1, 1)
bones/13/position = Vector3(-0.0208772, 1.28692e-07, 0.00347639)
bones/13/scale = Vector3(1.08891, 1, 0.85497)
bones/14/position = Vector3(-0.0348034, 1.17923e-07, -0.00384641)
bones/14/scale = Vector3(1.08891, 1, 0.85497)
bones/15/position = Vector3(-0.0186913, 1.4579e-07, -0.0116523)
bones/16/position = Vector3(0.0108403, -2.65771e-08, 0.0188972)
bones/16/scale = Vector3(0.838477, 1, 1)
bones/17/position = Vector3(0.0221426, -1.77539e-07, 0.0106415)
bones/17/scale = Vector3(0.838477, 1, 1)
bones/16/position = Vector3(0.0152802, -8.55124e-08, 0.0116922)
bones/16/scale = Vector3(1.08891, 1, 0.85497)
bones/17/position = Vector3(0.0299582, -6.64203e-08, 0.00463103)
bones/17/scale = Vector3(1.08891, 1, 1)
bones/18/position = Vector3(0.0138112, -1.99382e-07, -0.0106829)
bones/19/position = Vector3(-0.029965, -6.74833e-08, -0.0114938)
bones/20/position = Vector3(0.0319374, 2.70462e-10, -0.00811319)
bones/21/position = Vector3(0.044889, 0.0790918, 0.0936572)
bones/21/position = Vector3(0.0451344, 0.0764403, 0.0935013)
bones/21/rotation = Quaternion(0.160115, 0.667183, 0.68874, -0.234237)
bones/21/scale = Vector3(1, 1, 1)
bones/22/position = Vector3(-0.00351833, -2.67936e-08, 0.0010112)
bones/25/position = Vector3(-0.0440574, 0.0783089, 0.0941856)
bones/25/position = Vector3(-0.0442944, 0.0756561, 0.0940351)
bones/25/rotation = Quaternion(-0.161417, 0.667625, 0.688436, 0.232975)
bones/25/scale = Vector3(1, 1, 1)
bones/26/position = Vector3(0.00351835, 2.9417e-08, 0.00101115)
bones/29/rotation = Quaternion(0.0380703, -0.553858, 0.83045, 0.046313)
bones/29/rotation = Quaternion(0.0348119, -0.609386, 0.790604, 0.0488095)
bones/29/scale = Vector3(1, 1, 1)
bones/30/rotation = Quaternion(-0.0781409, -0.0105842, -0.115956, 0.990119)
bones/30/rotation = Quaternion(-0.0795463, -0.00713307, -0.072255, 0.994183)
bones/31/rotation = Quaternion(0.00282337, 0.992799, -0.117349, -0.0238866)
bones/32/rotation = Quaternion(0.606462, -1.14593e-07, -1.28808e-06, 0.795113)
bones/32/rotation = Quaternion(0.51819, 2.60584e-08, -1.29504e-06, 0.855265)
bones/33/rotation = Quaternion(-0.0342351, -3.5846e-07, 8.54711e-08, 0.999414)
bones/35/rotation = Quaternion(0.397408, -0.103572, 0.388088, 0.825062)
bones/36/rotation = Quaternion(-0.633219, 3.19342e-07, 4.90029e-07, 0.773973)
bones/37/rotation = Quaternion(0.0945016, -0.0723711, 0.253271, 0.960045)
bones/35/rotation = Quaternion(0.249306, -0.106935, 0.274008, 0.922676)
bones/36/rotation = Quaternion(-0.557204, 3.58411e-07, 4.60852e-07, 0.830376)
bones/37/rotation = Quaternion(-0.124018, -0.101153, 0.10961, 0.981006)
bones/37/scale = Vector3(1, 1, 1)
bones/38/rotation = Quaternion(-0.513015, 4.23514e-07, 9.53545e-07, 0.85838)
bones/38/rotation = Quaternion(-0.581882, 3.27627e-07, 9.75025e-07, 0.813273)
bones/38/scale = Vector3(1, 1, 1)
bones/39/rotation = Quaternion(0.197471, 0.678974, 0.678974, -0.19747)
bones/39/scale = Vector3(0.919105, 1, 1.04456)
bones/41/position = Vector3(0.0172113, 0.000225222, -0.00384306)
bones/41/rotation = Quaternion(2.9384e-08, 0.00503415, -1.47156e-07, 0.999987)
bones/39/scale = Vector3(1.07535, 1, 0.915612)
bones/41/position = Vector3(0.0139192, 0.000225329, -0.00384292)
bones/41/rotation = Quaternion(2.32454e-08, -0.00598613, -1.36913e-07, 0.999982)
bones/41/scale = Vector3(0.999981, 1, 0.538573)
bones/42/position = Vector3(0.0392888, -1.17533e-06, -0.00209796)
bones/43/position = Vector3(-0.0495715, -2.58908e-06, 0.0301691)
@@ -213,9 +211,9 @@ bones/45/position = Vector3(-0.013421, 6.33299e-08, -0.0283991)
bones/46/position = Vector3(-0.0513805, 8.90344e-07, -0.0104124)
bones/47/position = Vector3(0.0446487, -1.27684e-06, -0.0177286)
bones/48/rotation = Quaternion(-0.19747, 0.678974, 0.678974, 0.19747)
bones/48/scale = Vector3(0.919105, 1, 1.04456)
bones/50/position = Vector3(-0.0137106, 0.000225234, -0.00485533)
bones/50/rotation = Quaternion(6.25825e-09, 0.00612764, 2.65462e-08, 0.999981)
bones/48/scale = Vector3(1.07535, 1, 0.865321)
bones/50/position = Vector3(-0.0170028, 0.000225411, -0.00485537)
bones/50/rotation = Quaternion(1.248e-08, -0.00728642, 6.79947e-08, 0.999973)
bones/50/scale = Vector3(0.999977, 1, 0.397035)
bones/51/position = Vector3(-0.0392888, -1.22121e-06, -0.00333335)
bones/52/position = Vector3(0.0495715, -2.68185e-06, 0.0147188)
@@ -223,17 +221,17 @@ bones/53/position = Vector3(0.00910765, -7.47593e-08, 0.000409614)
bones/54/position = Vector3(0.0134209, 4.70912e-08, -0.0184937)
bones/55/position = Vector3(0.0513805, 9.29226e-07, -0.0104125)
bones/56/position = Vector3(-0.0446488, -1.30966e-06, -0.0177287)
bones/57/rotation = Quaternion(0.277731, -0.060377, -0.696946, 0.658397)
bones/57/rotation = Quaternion(0.250692, -0.015874, -0.717888, 0.64926)
bones/57/scale = Vector3(1, 1, 1)
bones/58/rotation = Quaternion(0.704351, 0.0867521, -0.214022, 0.671237)
bones/58/rotation = Quaternion(0.547427, 0.0727925, -0.343529, 0.759613)
bones/58/scale = Vector3(1, 1, 1)
bones/59/position = Vector3(6.12581e-09, 0.328454, -1.26206e-07)
bones/59/rotation = Quaternion(0.364376, -0.19785, -0.0981196, 0.904687)
bones/59/position = Vector3(-1.27016e-07, 0.288296, 1.25242e-08)
bones/59/rotation = Quaternion(0.462535, -0.0306456, -0.0826658, 0.882207)
bones/59/scale = Vector3(1, 1, 1)
bones/60/rotation = Quaternion(0.00106241, -0.239179, 0.00026177, 0.970975)
bones/60/rotation = Quaternion(0.00106262, -0.238284, 0.000260704, 0.971195)
bones/60/scale = Vector3(1, 1, 1)
bones/61/position = Vector3(1.69461e-07, 0.0521764, -0.000113979)
bones/61/rotation = Quaternion(-0.158231, -0.288435, 0.113996, 0.937429)
bones/61/position = Vector3(-2.00553e-08, 0.0500378, -0.000109436)
bones/61/rotation = Quaternion(-0.306126, -0.34578, 0.111249, 0.87997)
bones/61/scale = Vector3(1, 1, 1)
bones/62/rotation = Quaternion(0.493569, 0.84346, 0.0982726, -0.187901)
bones/63/rotation = Quaternion(0.52804, -0.147693, -0.0941254, 0.830964)
@@ -286,29 +284,29 @@ bones/93/rotation = Quaternion(-0.494209, 0.0204614, -0.0359497, 0.868359)
bones/93/scale = Vector3(1, 1.13164, 1)
bones/94/rotation = Quaternion(-0.547852, 0.057849, -0.0581314, 0.832546)
bones/94/scale = Vector3(1, 1.05697, 1)
bones/95/position = Vector3(1.92779e-07, 0.0521764, -0.000114079)
bones/95/rotation = Quaternion(-0.754354, -0.144364, -0.0631386, 0.637277)
bones/95/position = Vector3(-2.927e-08, 0.0500378, -0.000109433)
bones/95/rotation = Quaternion(-0.798584, -0.166404, -0.0860817, 0.571982)
bones/95/scale = Vector3(1, 1, 1)
bones/96/position = Vector3(2.4979e-08, 0.328454, -1.11117e-07)
bones/96/rotation = Quaternion(-0.557525, -0.0360651, -0.107249, 0.822413)
bones/96/scale = Vector3(1, 1.05716, 1)
bones/96/position = Vector3(-1.69053e-07, 0.288296, 2.26814e-08)
bones/96/rotation = Quaternion(-0.516871, 0.0189744, -0.0412999, 0.854856)
bones/96/scale = Vector3(1, 1.09431, 1)
bones/97/position = Vector3(-0.00645471, 0.000163305, -0.00321278)
bones/97/rotation = Quaternion(0.248427, 0.0258538, -0.267814, 0.930533)
bones/98/position = Vector3(-5.76256e-09, 0.0159596, 0.000181361)
bones/98/rotation = Quaternion(-0.0586372, -0.00568235, -0.12181, 0.990804)
bones/99/rotation = Quaternion(-0.37291, 0.0880152, -0.0393099, 0.922847)
bones/99/rotation = Quaternion(-0.457054, 0.129616, -0.0928363, 0.875033)
bones/99/scale = Vector3(1, 1, 1)
bones/100/rotation = Quaternion(0.0475748, -0.0297415, 0.50835, 0.859321)
bones/100/rotation = Quaternion(0.047975, -0.0290916, 0.496614, 0.866156)
bones/100/scale = Vector3(1, 1, 1)
bones/101/rotation = Quaternion(0.0208895, 0.521267, 0.60371, 0.602809)
bones/101/rotation = Quaternion(0.0735213, 0.453738, 0.707398, 0.536939)
bones/101/scale = Vector3(1, 1, 1)
bones/102/position = Vector3(6.2732e-09, 0.281682, 9.00968e-08)
bones/102/rotation = Quaternion(0.0832479, 5.13741e-05, 4.83214e-05, 0.996529)
bones/102/rotation = Quaternion(0.0299112, 4.92746e-05, 5.11185e-05, 0.999553)
bones/102/scale = Vector3(1, 1, 1)
bones/103/rotation = Quaternion(0.00109409, -0.00884027, 9.53927e-06, 0.99996)
bones/103/rotation = Quaternion(0.00109412, 0.000158973, -1.86224e-07, 0.999999)
bones/103/scale = Vector3(0.999997, 0.999997, 1)
bones/104/position = Vector3(-1.97803e-07, 0.068466, -0.000150014)
bones/104/rotation = Quaternion(-0.388948, -0.015049, 0.0129944, 0.921045)
bones/104/rotation = Quaternion(-0.438056, 0.000260938, -0.000173902, 0.898948)
bones/104/scale = Vector3(1, 1, 1)
bones/105/rotation = Quaternion(-0.272954, 0.938438, 0.146391, -0.152973)
bones/105/scale = Vector3(1, 1, 1)
@@ -363,104 +361,104 @@ bones/136/scale = Vector3(1, 1.25698, 1)
bones/137/rotation = Quaternion(-0.479239, -0.0566498, 0.0570499, 0.873994)
bones/137/scale = Vector3(1, 1.15486, 1)
bones/138/position = Vector3(-1.96072e-07, 0.068466, -0.000149977)
bones/138/rotation = Quaternion(-0.834679, -0.0101155, -0.000774077, 0.550644)
bones/138/rotation = Quaternion(-0.849258, 0.000157943, 3.23818e-05, 0.527979)
bones/138/scale = Vector3(1, 1, 1)
bones/139/position = Vector3(3.48513e-09, 0.281682, 1.40144e-07)
bones/139/rotation = Quaternion(-0.676584, 3.01204e-06, 6.07407e-05, 0.736366)
bones/139/rotation = Quaternion(-0.696011, 1.21396e-06, 6.09475e-05, 0.718031)
bones/139/scale = Vector3(1, 1, 1)
bones/140/position = Vector3(-0.00091601, -0.00419344, -0.00166352)
bones/140/rotation = Quaternion(0.180101, -0.00275761, 0.0409847, 0.98279)
bones/140/scale = Vector3(1.12362, 1, 1)
bones/141/position = Vector3(2.32831e-10, 0.0159594, 0.000181319)
bones/141/rotation = Quaternion(-0.0876969, -0.00686066, -0.0793036, 0.992962)
bones/142/rotation = Quaternion(-0.626388, -0.00258176, 0.436437, 0.645875)
bones/142/rotation = Quaternion(-0.59306, -0.072254, 0.461617, 0.65572)
bones/142/scale = Vector3(1, 1, 0.999999)
bones/143/position = Vector3(-0.00423954, 0.109886, 0.0700472)
bones/143/position = Vector3(-0.0139807, 0.110044, 0.0701197)
bones/143/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47963e-09, 0.999476)
bones/144/position = Vector3(0.0281366, 0.0527931, 0.0903471)
bones/144/position = Vector3(-0.0111757, 0.0524648, 0.10961)
bones/144/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47954e-09, 0.999476)
bones/145/position = Vector3(0.0514959, 0.00166125, 0.0687895)
bones/145/position = Vector3(-0.0132329, -0.018423, 0.126834)
bones/145/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47955e-09, 0.999476)
bones/146/position = Vector3(-0.0566781, 0.0594412, -0.100155)
bones/146/position = Vector3(-0.00282269, 0.0438543, -0.144881)
bones/146/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47962e-09, 0.999476)
bones/147/position = Vector3(0.0691912, 0.0486799, -0.0825077)
bones/147/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/148/position = Vector3(0.0943368, 0.0943547, -0.0605243)
bones/148/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/149/position = Vector3(0.0967298, 0.0710347, 0.015133)
bones/149/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/150/position = Vector3(0.093057, 0.0241976, -0.0276179)
bones/150/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/151/position = Vector3(0.06433, 0.0604251, 0.0556413)
bones/147/position = Vector3(0.119573, 0.0291284, -0.0793672)
bones/147/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/148/position = Vector3(0.108832, 0.0891115, -0.0550522)
bones/148/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/149/position = Vector3(0.0832047, 0.066736, 0.0430919)
bones/149/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/150/position = Vector3(0.10844, -0.00998876, 0.0247553)
bones/150/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/151/position = Vector3(0.045835, 0.058439, 0.0867506)
bones/151/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476)
bones/152/position = Vector3(0.0845218, 0.0140143, 0.0313174)
bones/152/position = Vector3(0.0509334, -0.0151493, 0.0894968)
bones/152/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476)
bones/153/position = Vector3(0.0423875, 0.113961, 0.0538997)
bones/153/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/154/position = Vector3(0.0552119, 0.134183, 0.0436985)
bones/154/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/155/position = Vector3(0.0723451, 0.157427, 0.0142438)
bones/155/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/156/position = Vector3(0.0833549, 0.159348, -0.011306)
bones/156/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/157/position = Vector3(0.0998251, 0.123482, -0.0440989)
bones/157/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/158/position = Vector3(0.0486963, 0.129739, -0.0748386)
bones/158/rotation = Quaternion(0.118694, -0.248251, 0.0149218, 0.961281)
bones/159/position = Vector3(-0.106087, 0.0670075, -0.0105082)
bones/159/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954374)
bones/160/position = Vector3(-0.108491, 0.119749, -0.0404107)
bones/160/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/161/position = Vector3(-0.0891777, 0.125465, 0.0448228)
bones/161/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/162/position = Vector3(-0.0777612, 0.0451818, 0.0541569)
bones/162/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/163/position = Vector3(-0.0432788, 0.0774404, 0.0825489)
bones/153/position = Vector3(0.0363082, 0.109653, 0.0524593)
bones/153/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/154/position = Vector3(0.0626361, 0.13099, 0.0390041)
bones/154/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/155/position = Vector3(0.0770166, 0.154954, 0.00866816)
bones/155/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/156/position = Vector3(0.0852847, 0.157581, -0.0178354)
bones/156/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/157/position = Vector3(0.102407, 0.121445, -0.0463067)
bones/157/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/158/position = Vector3(0.0609227, 0.12881, -0.067941)
bones/158/rotation = Quaternion(0.133316, -0.19788, -0.0047292, 0.971107)
bones/159/position = Vector3(-0.125687, 0.0555322, -0.0820334)
bones/159/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/160/position = Vector3(-0.0944835, 0.113247, -0.0781763)
bones/160/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/161/position = Vector3(-0.10545, 0.126761, 0.0306197)
bones/161/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/162/position = Vector3(-0.134348, 0.0646965, 0.0125657)
bones/162/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/163/position = Vector3(-0.0629909, 0.0764249, 0.0976013)
bones/163/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476)
bones/164/position = Vector3(-0.033567, 0.022385, 0.0895643)
bones/164/position = Vector3(-0.0844746, 0.0059698, 0.111779)
bones/164/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476)
bones/165/position = Vector3(-0.0431944, 0.140692, 0.0591673)
bones/165/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/166/position = Vector3(-0.065314, 0.18073, 0.0204762)
bones/166/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/167/position = Vector3(-0.05903, 0.195583, -0.0181708)
bones/167/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954374)
bones/168/position = Vector3(-0.0602179, 0.192205, -0.0458272)
bones/168/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/169/position = Vector3(-0.0905998, 0.161524, -0.0641751)
bones/169/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/170/position = Vector3(-0.0566697, 0.146337, -0.0746882)
bones/170/rotation = Quaternion(0.0317135, 0.0236912, -0.295977, 0.954375)
bones/171/rotation = Quaternion(0.877415, -0.0743151, -0.204364, 0.427616)
bones/165/position = Vector3(-0.0530007, 0.145973, 0.0543718)
bones/165/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/166/position = Vector3(-0.0644365, 0.182007, 0.0201099)
bones/166/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/167/position = Vector3(-0.0573856, 0.196716, -0.0180385)
bones/167/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/168/position = Vector3(-0.0587486, 0.193374, -0.0456911)
bones/168/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/169/position = Vector3(-0.0900045, 0.163528, -0.0639474)
bones/169/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/170/position = Vector3(-0.0565296, 0.14743, -0.0745644)
bones/170/rotation = Quaternion(0.0316156, 0.0247255, -0.308898, 0.950248)
bones/171/rotation = Quaternion(0.766041, 0.164396, -0.409579, 0.467333)
bones/171/scale = Vector3(0.999998, 0.999997, 1.00001)
bones/172/position = Vector3(3.62338e-10, 0.531431, 3.56619e-08)
bones/172/rotation = Quaternion(0.281253, 1.88623e-07, 1.54617e-07, 0.959634)
bones/172/rotation = Quaternion(0.280398, -1.74173e-06, -3.57947e-07, 0.959884)
bones/172/scale = Vector3(1, 0.999998, 1.00001)
bones/173/position = Vector3(6.48577e-09, 0.418112, 8.79831e-08)
bones/173/rotation = Quaternion(-0.452278, -0.00611235, 0.0119584, 0.891776)
bones/173/rotation = Quaternion(-0.381537, -0.0195898, 0.0489257, 0.92285)
bones/173/scale = Vector3(1, 0.999992, 0.999996)
bones/174/rotation = Quaternion(-0.388439, -1.7287e-07, -1.04265e-07, 0.921475)
bones/175/position = Vector3(1.16517e-08, 0.418112, 8.45817e-08)
bones/175/rotation = Quaternion(-0.754895, -0.00359843, 0.00302697, 0.655828)
bones/175/rotation = Quaternion(-0.736764, -0.0129823, 0.0131286, 0.675898)
bones/175/scale = Vector3(1, 1, 1)
bones/176/position = Vector3(1.15382e-08, 0.531431, 3.0748e-08)
bones/176/rotation = Quaternion(-0.637485, -4.82392e-08, -4.96434e-08, 0.770463)
bones/176/scale = Vector3(1, 1.01425, 1)
bones/177/rotation = Quaternion(0.917832, -0.220367, 0.17219, 0.281734)
bones/176/rotation = Quaternion(-0.637828, -5.03305e-07, -9.37431e-07, 0.770179)
bones/176/scale = Vector3(1, 1.0141, 1)
bones/177/rotation = Quaternion(0.941816, -0.00336278, -0.0741776, 0.327825)
bones/177/scale = Vector3(1, 0.999998, 1.00001)
bones/178/position = Vector3(2.73163e-08, 0.531431, 1.20327e-09)
bones/178/rotation = Quaternion(0.379714, 2.27811e-06, 6.89098e-07, 0.925104)
bones/178/rotation = Quaternion(0.319624, -2.78976e-06, -7.26061e-07, 0.947545)
bones/178/scale = Vector3(1, 0.999999, 1.00001)
bones/179/position = Vector3(8.4155e-09, 0.418112, 3.97981e-07)
bones/179/rotation = Quaternion(-0.422029, -0.0105345, -0.139446, 0.895732)
bones/179/rotation = Quaternion(-0.42193, 1.36197e-05, -0.103163, 0.90074)
bones/179/scale = Vector3(1, 0.99999, 0.999998)
bones/180/rotation = Quaternion(-0.593886, 1.51074e-07, 1.67088e-07, 0.804549)
bones/180/rotation = Quaternion(-0.560426, 1.52972e-07, 1.60613e-07, 0.828205)
bones/181/position = Vector3(2.69973e-08, 0.418112, 4.26027e-07)
bones/181/rotation = Quaternion(-0.747306, 0.0156064, -0.0465412, 0.662665)
bones/181/rotation = Quaternion(-0.747195, 0.0140527, -0.0333235, 0.66362)
bones/181/scale = Vector3(1, 1, 1)
bones/182/position = Vector3(1.89344e-08, 0.531431, -1.32203e-08)
bones/182/rotation = Quaternion(-0.596422, 5.25389e-07, 1.28234e-06, 0.802671)
bones/182/scale = Vector3(1, 1.03983, 1)
bones/182/rotation = Quaternion(-0.621858, -6.37104e-07, -1.12013e-06, 0.78313)
bones/182/scale = Vector3(1, 1.0221, 1)
[node name="BoneFlipper" type="SkeletonModifier3D" parent="Model/Armature/Skeleton3D" index="0"]
_import_path = NodePath("")

View File

@@ -1,7 +1,6 @@
[gd_scene load_steps=16 format=3 uid="uid://cejn8wfgw14xs"]
[gd_scene load_steps=15 format=3 uid="uid://cejn8wfgw14xs"]
[ext_resource type="Script" uid="uid://bbd22tc1scoom" path="res://scripts/gameplay/projectiles/projectile.gd" id="1_kv6x5"]
[ext_resource type="Material" uid="uid://cux40v5s5sok3" path="res://resources/materials/debug/debug_projectile.tres" id="2_b024o"]
[ext_resource type="PackedScene" uid="uid://c8gqrealje3o" path="res://scenes/effects/shadow_decal.tscn" id="3_2dqcj"]
[ext_resource type="PackedScene" uid="uid://jmtp1qxxnyr2" path="res://scenes/projectiles/projectile_hit_particles.tscn" id="3_a8d2p"]
[ext_resource type="PackedScene" uid="uid://bl3flu6un3op1" path="res://assets/models/projectiles/projectile.glb" id="3_oc4rm"]
@@ -37,7 +36,6 @@ orientation = 1
collision_layer = 32
collision_mask = 49
script = ExtResource("1_kv6x5")
_collision_debug_material = ExtResource("2_b024o")
_hit_particles_scene = ExtResource("3_a8d2p")
_destroy_particles_scene = ExtResource("4_wq63x")
_model_base = NodePath("Model")

View File

@@ -78,6 +78,8 @@ _data = {
[node name="Test" type="Node"]
[node name="Debugger" parent="." instance=ExtResource("6_lpvoh")]
[node name="Player" parent="." instance=ExtResource("2_f4ehn")]
[node name="Geometry" type="Node" parent="."]
@@ -136,5 +138,3 @@ libraries = {
[node name="Projectile" parent="." instance=ExtResource("5_j5jx5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.1254, 1.08522, -3.37655)
script = null
[node name="Debugger" parent="." instance=ExtResource("6_lpvoh")]

View File

@@ -1,68 +0,0 @@
class_name DebugCollisionShapes
const MARGIN = 0.01
var is_visible: bool = true
var _mesh_nodes: Array[MeshInstance3D] = []
func init(children: Array[Node], parent: Node, material: Material) -> void:
for child in children:
if child is not CollisionShape3D:
continue
var shape_node: CollisionShape3D = child as CollisionShape3D
if shape_node.shape == null:
continue
var mesh_node := MeshInstance3D.new()
if shape_node.shape is BoxShape3D:
var shape := shape_node.shape as BoxShape3D
var mesh := BoxMesh.new()
mesh.size = shape.size
mesh_node.mesh = mesh
if shape_node.shape is CapsuleShape3D:
var shape := shape_node.shape as CapsuleShape3D
var mesh := CapsuleMesh.new()
mesh.radius = shape.radius + MARGIN
mesh.height = shape.height + MARGIN
mesh.radial_segments = 8
mesh.rings = 1
mesh_node.mesh = mesh
if shape_node.shape is SphereShape3D:
var shape := shape_node.shape as SphereShape3D
var mesh := SphereMesh.new()
mesh.radius = shape.radius + MARGIN
mesh.height = shape.radius * 2 + MARGIN
mesh.radial_segments = 8
mesh.rings = 4
mesh_node.mesh = mesh
if shape_node.shape is CylinderShape3D:
var shape := shape_node.shape as CylinderShape3D
var mesh := CylinderMesh.new()
mesh.top_radius = shape.radius + MARGIN
mesh.bottom_radius = shape.radius + MARGIN
mesh.height = shape.height + MARGIN
mesh.radial_segments = 8
mesh.rings = 0
mesh_node.mesh = mesh
mesh_node.material_override = material
mesh_node.cast_shadow = GeometryInstance3D.SHADOW_CASTING_SETTING_OFF
mesh_node.visible = Debugger.mode == Debugger.Mode.FULL
parent.add_child(mesh_node)
mesh_node.global_transform = (child as Node3D).global_transform
_mesh_nodes.append(mesh_node)
Debugger.mode_changed.connect(_on_debugger_mode_changed)
func set_visibility(visible: bool) -> void:
is_visible = visible
for node in _mesh_nodes:
node.visible = is_visible and Debugger.mode == Debugger.Mode.FULL
func _on_debugger_mode_changed(mode: Debugger.Mode) -> void:
for mesh_node in _mesh_nodes:
mesh_node.visible = mode == Debugger.Mode.FULL

View File

@@ -1 +0,0 @@
uid://bpnxcjqwxcyyi

View File

@@ -39,6 +39,7 @@ func _ready() -> void:
assert(_label2, str(self) + ": _label2 missing!")
assert(_label3, str(self) + ": _label2 missing!")
assert(_label4, str(self) + ": _label2 missing!")
instance = self
_control.draw.connect(_on_control_draw)
Inputer.mode_changed.connect(_on_inputer_mode_changed)
# enabled = OS.has_feature("editor")
@@ -89,7 +90,9 @@ static func vector(
if not show_debug():
return
instance._vectors_to_draw[key] = {"from": from, "to": to, "color": color, "on": true}
instance._vectors_to_draw[key] = {
"from": from, "to": to, "color": color, "on": true
}
static func line(
@@ -110,7 +113,9 @@ static func marker(
if not show_debug():
return
instance._markers_to_draw[key] = ({"pos": pos, "radius": radius, "color": color, "on": true})
instance._markers_to_draw[key] = ({
"pos": pos, "radius": radius, "color": color, "on": true
})
static func circle(key: String, pos: Vector3, color: Color = DEFAULT_COLOR) -> void:

View File

@@ -9,7 +9,6 @@ static var instances: Array[Player]
@export var _device_index: int = 0
@export var _respawn_height: float = -5
@export var _collision_debug_material: Material
@export_group("References")
@export var attack: PlayerAttacker
@@ -20,7 +19,6 @@ var movement: PlayerMovementHandler = PlayerMovementHandler.new()
var aiming: PlayerAimingHandler = PlayerAimingHandler.new()
var _respawn_point: Vector3
var _debug_collision_shapes := DebugCollisionShapes.new()
static func is_single_player() -> bool:
@@ -30,7 +28,6 @@ static func is_single_player() -> bool:
func _ready() -> void:
_respawn_point = global_position
instances.append(self)
_debug_collision_shapes.init(get_children(), self, _collision_debug_material)
func _process(_delta: float) -> void:

View File

@@ -26,8 +26,6 @@ enum Side { RIGHT, LEFT }
var side := Side.RIGHT
var _debug_collision_shapes := DebugCollisionShapes.new()
var _cooldown_timer: float
var _hit_window_timer: float
var _queue_hit_stop: bool
@@ -43,7 +41,6 @@ func _ready() -> void:
position.y = Projectile.HEIGHT
_set_collision_size(attack_radius)
_debug_collision_shapes.init(get_children(), self, _collision_debug_material)
func _process(delta: float) -> void:
@@ -52,8 +49,6 @@ func _process(delta: float) -> void:
if _hit_window_timer > 0:
_hit_window_timer -= delta
elif _debug_collision_shapes.is_visible:
_debug_collision_shapes.set_visibility(false)
if _queue_hit_stop:
_queue_hit_stop = false
@@ -108,7 +103,6 @@ func attack() -> void:
_cooldown_timer = _cooldown_time
_hit_window_timer = _hit_window_time
_debug_collision_shapes.set_visibility(true)
side = Side.LEFT if side == Side.RIGHT else Side.RIGHT
attacked.emit()

View File

@@ -6,7 +6,6 @@ const MAX_STRETCH: float = 0.75
@export var _speed_stretch_factor: float = 100
@export var _collision_debug_material: Material
@export var _hit_particles_scene: PackedScene
@export var _destroy_particles_scene: PackedScene
@@ -21,12 +20,9 @@ var _size: float = 0.25
var _life_timer: float
var _debug_collision_shapes := DebugCollisionShapes.new()
func _ready() -> void:
_life_timer = _lifetime
_debug_collision_shapes.init(get_children(), self, _collision_debug_material)
global_position = _start_position
body_entered.connect(_on_body_entered)
_model_mesh.rotation = Vector3(

View File

@@ -32,17 +32,6 @@ var _current_prompts: CompressedTexture2D = _prompts_xbox
func _ready() -> void:
Input.joy_connection_changed.connect(_on_input_joy_connection_changed)
Debugger.add_event("mode_changed")
mode_changed.connect(
func(new_mode: Mode) -> void:
Debugger.event_emitted("mode_changed", [Mode.keys()[new_mode]])
)
Debugger.add_event("joy_connection_changed")
Input.joy_connection_changed.connect(
func(device: int, connected: bool) -> void:
Debugger.event_emitted("joy_connection_changed", [device, connected])
)
_get_controller_type()
@@ -59,9 +48,6 @@ func _input(event: InputEvent) -> void:
mode = Mode.KB_MOUSE
mode_changed.emit(mode)
if Debugger.show_debug() and event.is_pressed():
Debugger.text("input", _get_event_prompt_current_mode(event))
func get_vector_from_raw_strengths(
negative_x: float,