diff --git a/.godot/editor/Board.tscn-editstate-557796a61f6b71878ce11fb9706f6d70.cfg b/.godot/editor/Board.tscn-editstate-557796a61f6b71878ce11fb9706f6d70.cfg index 32252c7..52ebdec 100644 --- a/.godot/editor/Board.tscn-editstate-557796a61f6b71878ce11fb9706f6d70.cfg +++ b/.godot/editor/Board.tscn-editstate-557796a61f6b71878ce11fb9706f6d70.cfg @@ -97,7 +97,7 @@ Anim={ "auto_orthogonal_enabled": true, "cinematic_preview": false, "display_mode": 20, -"distance": 183.941, +"distance": 1000.0, "doppler": false, "frame_time": false, "gizmos": true, diff --git a/.godot/editor/Pawn.tscn-editstate-ee2e6b5eca20f2ef7fd9cfd9f9c666bc.cfg b/.godot/editor/Pawn.tscn-editstate-ee2e6b5eca20f2ef7fd9cfd9f9c666bc.cfg index cf77aa9..187928d 100644 --- a/.godot/editor/Pawn.tscn-editstate-ee2e6b5eca20f2ef7fd9cfd9f9c666bc.cfg +++ b/.godot/editor/Pawn.tscn-editstate-ee2e6b5eca20f2ef7fd9cfd9f9c666bc.cfg @@ -108,8 +108,8 @@ Anim={ "use_environment": false, "use_orthogonal": false, "view_type": 0, -"x_rotation": 0.661445, -"y_rotation": -8.48052 +"x_rotation": 0.578542, +"y_rotation": -7.14098 }, { "auto_orthogonal": false, "auto_orthogonal_enabled": true, diff --git a/.godot/editor/editor_layout.cfg b/.godot/editor/editor_layout.cfg index 75748d5..6f80f8f 100644 --- a/.godot/editor/editor_layout.cfg +++ b/.godot/editor/editor_layout.cfg @@ -16,7 +16,7 @@ dock_5="Inspector,Node,History" [EditorNode] -open_scenes=["res://scenes/WorldGeneration.tscn", "res://scenes/camera.tscn", "res://scenes/Board.tscn", "res://scenes/Water.tscn", "res://assets/blocs/blocs.tscn"] +open_scenes=["res://scenes/WorldGeneration.tscn", "res://scenes/camera.tscn", "res://scenes/Board.tscn", "res://scenes/Water.tscn", "res://assets/blocs/blocs.tscn", "res://assets/entities/fox.tscn", "res://scenes/Pawn.tscn"] [ScriptEditor] diff --git a/.godot/editor/environment.tres-folding-55cb0503692521ce9cd0fcbe7b9a107e.cfg b/.godot/editor/environment.tres-folding-55cb0503692521ce9cd0fcbe7b9a107e.cfg index 06d8b71..de8d74e 100644 --- a/.godot/editor/environment.tres-folding-55cb0503692521ce9cd0fcbe7b9a107e.cfg +++ b/.godot/editor/environment.tres-folding-55cb0503692521ce9cd0fcbe7b9a107e.cfg @@ -1,3 +1,3 @@ [folding] -sections_unfolded=PackedStringArray("Glow", "Volumetric Fog", "SDFGI", "Reflected Light", "SSAO", "Sky", "SSIL", "Tonemap", "Fog", "Volumetric Fog/Temporal Reprojection", "Adjustments", "SSR", "sky") +sections_unfolded=PackedStringArray("Glow", "Volumetric Fog", "SDFGI", "Reflected Light", "SSAO", "Sky", "SSIL", "Tonemap", "Fog", "Volumetric Fog/Temporal Reprojection", "Adjustments", "SSR") diff --git a/.godot/editor/filesystem_update4 b/.godot/editor/filesystem_update4 index 6af1d47..44ba8d4 100644 --- a/.godot/editor/filesystem_update4 +++ b/.godot/editor/filesystem_update4 @@ -5,3 +5,7 @@ res://scenes/WorldGeneration.tscn res://scenes/camera.tscn res://scenes/Water.tscn res://assets/blocs/blocs.tscn +res://assets/entities/fox.tscn +res://scenes/Pawn.tscn +res://test.tscn +res://scripts/Pawn.gd diff --git a/.godot/editor/project_metadata.cfg b/.godot/editor/project_metadata.cfg index 82a1394..fe0d699 100644 --- a/.godot/editor/project_metadata.cfg +++ b/.godot/editor/project_metadata.cfg @@ -11,7 +11,7 @@ run_reload_scripts=true [recent_files] -scenes=["res://assets/blocs/blocs.tscn", "res://scenes/Water.tscn", "res://scenes/Board.tscn", "res://scenes/camera.tscn", "res://scenes/WorldGeneration.tscn", "res://scenes/3DWorld.tscn", "res://scenes/Pawn.tscn", "res://scenes/Instance.tscn", "res://scenes/Game.tscn", "res://scenes/Map.tscn"] +scenes=["res://test.tscn", "res://scenes/Pawn.tscn", "res://assets/entities/fox.tscn", "res://assets/blocs/blocs.tscn", "res://scenes/Water.tscn", "res://scenes/Board.tscn", "res://scenes/camera.tscn", "res://scenes/WorldGeneration.tscn", "res://scenes/3DWorld.tscn", "res://scenes/Instance.tscn"] scripts=["Vector2i", "res://scripts/Map_Cursor.gd", "res://scripts/Map.gd", "res://scripts/Camera3D.gd", "res://scripts/Entity.gd", "res://scripts/Chunk.gd", "res://scripts/Instance3D.gd", "res://scripts/WorldGeneration.gd", "res://scripts/World.gd", "res://scripts/Board.gd"] [color_picker] diff --git a/.godot/editor/script_editor_cache.cfg b/.godot/editor/script_editor_cache.cfg index 19d6ea8..d7fb53d 100644 --- a/.godot/editor/script_editor_cache.cfg +++ b/.godot/editor/script_editor_cache.cfg @@ -143,11 +143,11 @@ state={ state={ "bookmarks": PackedInt32Array(), "breakpoints": PackedInt32Array(), -"column": 80, +"column": 54, "folded_lines": Array[int]([]), "h_scroll_position": 0, -"row": 48, -"scroll_position": 23.0, +"row": 43, +"scroll_position": 28.0, "selection": false, "syntax_highlighter": "GDScript" } diff --git a/.godot/editor/test.tscn-editstate-f0a4ea32b72b64218d23e48a955cbc61.cfg b/.godot/editor/test.tscn-editstate-f0a4ea32b72b64218d23e48a955cbc61.cfg index d149350..2c6cae8 100644 --- a/.godot/editor/test.tscn-editstate-f0a4ea32b72b64218d23e48a955cbc61.cfg +++ b/.godot/editor/test.tscn-editstate-f0a4ea32b72b64218d23e48a955cbc61.cfg @@ -108,8 +108,8 @@ Anim={ "use_environment": false, "use_orthogonal": false, "view_type": 0, -"x_rotation": 0.5, -"y_rotation": -0.5 +"x_rotation": 0.534907, +"y_rotation": -0.984329 }, { "auto_orthogonal": false, "auto_orthogonal_enabled": true, diff --git a/.godot/uid_cache.bin b/.godot/uid_cache.bin index 9e81e00..233b501 100644 Binary files a/.godot/uid_cache.bin and b/.godot/uid_cache.bin differ diff --git a/assets/entities/fox.tscn b/assets/entities/fox.tscn index 7e21295..703a9af 100644 --- a/assets/entities/fox.tscn +++ b/assets/entities/fox.tscn @@ -2166,15 +2166,15 @@ bones/4/name = "Bone" bones/4/parent = -1 bones/4/rest = Transform3D(1, -2.46286e-08, 2.5291e-08, 2.5291e-08, 0.999648, -0.0265338, -2.46286e-08, 0.0265338, 0.999648, 1.86265e-09, 0.417916, -2.98023e-08) bones/4/enabled = true -bones/4/position = Vector3(1.7253e-09, 0.423491, 0.000147936) -bones/4/rotation = Quaternion(0.105128, 0.119704, -0.0131855, 0.98714) +bones/4/position = Vector3(2.64947e-09, 0.385979, -0.000847727) +bones/4/rotation = Quaternion(0.102992, 0.250302, -0.0234463, 0.962389) bones/4/scale = Vector3(1, 1, 1) bones/5/name = "Bone.001" bones/5/parent = 4 bones/5/rest = Transform3D(1, 2.5291e-08, -2.46286e-08, -2.46286e-08, 0.999648, 0.0265338, 2.5291e-08, -0.0265338, 0.999648, -5.55112e-16, 0.132351, -4.65661e-10) bones/5/enabled = true bones/5/position = Vector3(-5.55112e-16, 0.132351, -4.65661e-10) -bones/5/rotation = Quaternion(-0.0921108, -2.85413e-09, -1.26378e-08, 0.995749) +bones/5/rotation = Quaternion(-0.0981354, -1.34297e-08, -1.16755e-08, 0.995173) bones/5/scale = Vector3(1, 1, 1) bones/6/name = "Hood" bones/6/parent = 5 @@ -2195,14 +2195,14 @@ bones/8/parent = 7 bones/8/rest = Transform3D(0.432952, 0.625738, -0.648848, 0.0448951, 0.703947, 0.708832, 0.900299, -0.33602, 0.276683, -4.58576e-08, 0.177444, 2.2833e-08) bones/8/enabled = true bones/8/position = Vector3(-4.58576e-08, 0.177444, 2.2833e-08) -bones/8/rotation = Quaternion(-0.637586, -0.132856, -0.257081, 0.713963) +bones/8/rotation = Quaternion(-0.636155, -0.134877, -0.266296, 0.711479) bones/8/scale = Vector3(1, 1, 1) bones/9/name = "Bone.007" bones/9/parent = 8 bones/9/rest = Transform3D(0.993117, 0.117124, -5.22467e-07, -0.117124, 0.993117, 3.55109e-07, 5.60463e-07, -2.91471e-07, 1, 2.21716e-09, 0.162903, 2.38916e-08) bones/9/enabled = true bones/9/position = Vector3(2.21716e-09, 0.162903, 2.38916e-08) -bones/9/rotation = Quaternion(-1.41262e-06, -2.40504e-07, -0.512946, 0.858421) +bones/9/rotation = Quaternion(-1.38446e-06, -2.29727e-07, -0.500732, 0.865602) bones/9/scale = Vector3(1, 1, 1) bones/10/name = "Sword" bones/10/parent = 9 @@ -2215,15 +2215,15 @@ bones/11/name = "Bone.008" bones/11/parent = 4 bones/11/rest = Transform3D(1, -8.88178e-16, 2.5291e-08, -2.52821e-08, -0.0265337, 0.999648, 6.71062e-10, -0.999648, -0.0265337, 0.480619, 0.125734, -0.00333734) bones/11/enabled = true -bones/11/position = Vector3(0.327701, -0.103694, -0.00426146) -bones/11/rotation = Quaternion(-0.77235, -0.0939671, -0.07532, 0.623677) +bones/11/position = Vector3(0.327701, -0.10686, -0.00417743) +bones/11/rotation = Quaternion(-0.753338, -0.193569, -0.160412, 0.607685) bones/11/scale = Vector3(1, 1, 1) bones/12/name = "Bone.011" bones/12/parent = 4 bones/12/rest = Transform3D(1, -8.88178e-16, 2.5291e-08, -2.52821e-08, -0.0265337, 0.999648, 6.71062e-10, -0.999648, -0.0265337, 0.287738, 0.120427, -0.203267) bones/12/enabled = true bones/12/position = Vector3(0.291431, 0.000401005, -0.236535) -bones/12/rotation = Quaternion(-0.77235, -0.0939671, -0.07532, 0.623677) +bones/12/rotation = Quaternion(-0.753338, -0.193569, -0.160412, 0.607685) bones/12/scale = Vector3(1, 1, 1) bones/13/name = "Bone.019" bones/13/parent = 4 @@ -2237,91 +2237,91 @@ bones/14/parent = 13 bones/14/rest = Transform3D(0.432957, -0.625736, 0.648848, -0.0449002, 0.703947, 0.708832, -0.900296, -0.336027, 0.276683, -4.79982e-09, 0.177444, -1.91455e-10) bones/14/enabled = true bones/14/position = Vector3(-4.79982e-09, 0.177444, -1.91455e-10) -bones/14/rotation = Quaternion(-0.679085, 0.461604, 0.246512, 0.514779) +bones/14/rotation = Quaternion(-0.679911, 0.462009, 0.243243, 0.514881) bones/14/scale = Vector3(1, 1, 1) bones/15/name = "Bone.021" bones/15/parent = 14 bones/15/rest = Transform3D(0.993115, -0.117137, 4.69532e-07, 0.117137, 0.993115, 4.91806e-07, -5.23908e-07, -4.33421e-07, 1, -6.55375e-09, 0.162903, -1.53009e-08) bones/15/enabled = true bones/15/position = Vector3(-6.55375e-09, 0.162903, -1.53009e-08) -bones/15/rotation = Quaternion(-1.93783e-06, 2.26104e-07, 0.484717, 0.874671) +bones/15/rotation = Quaternion(-1.93339e-06, 2.26841e-07, 0.491018, 0.871149) bones/15/scale = Vector3(1, 1, 1) bones/16/name = "Bone.022" bones/16/parent = 4 bones/16/rest = Transform3D(1, -8.88178e-16, 2.5291e-08, -2.52821e-08, -0.0265337, 0.999648, 6.71062e-10, -0.999648, -0.0265337, -0.480619, 0.125734, -0.00333736) bones/16/enabled = true -bones/16/position = Vector3(-0.358609, -0.0333629, 0.128596) -bones/16/rotation = Quaternion(-0.77235, -0.0939671, -0.07532, 0.623677) +bones/16/position = Vector3(-0.358609, -0.0310816, 0.128535) +bones/16/rotation = Quaternion(-0.753338, -0.193569, -0.160412, 0.607685) bones/16/scale = Vector3(1, 1, 1) bones/17/name = "Bone.023" bones/17/parent = 4 bones/17/rest = Transform3D(1, -8.88178e-16, 2.5291e-08, -2.52821e-08, -0.0265337, 0.999648, 6.71062e-10, -0.999648, -0.0265337, -0.287738, 0.120427, -0.203267) bones/17/enabled = true bones/17/position = Vector3(-0.285902, -0.138443, -0.16505) -bones/17/rotation = Quaternion(-0.77235, -0.0939671, -0.07532, 0.623677) +bones/17/rotation = Quaternion(-0.753338, -0.193569, -0.160412, 0.607685) bones/17/scale = Vector3(1, 1, 1) bones/18/name = "Tail_1" bones/18/parent = 4 bones/18/rest = Transform3D(1, 2.41907e-08, 2.5291e-08, -2.46403e-08, -0.0265337, 0.999648, 2.48533e-08, -0.999648, -0.0265337, 1.03816e-08, -0.0720164, -0.139991) bones/18/enabled = true bones/18/position = Vector3(1.03816e-08, -0.0720164, -0.139991) -bones/18/rotation = Quaternion(-0.758105, 6.58353e-09, -1.41345e-08, 0.652132) +bones/18/rotation = Quaternion(-0.773591, -5.81811e-09, -2.35335e-08, 0.633686) bones/18/scale = Vector3(1, 1, 1) bones/19/name = "Tail_2" bones/19/parent = 18 bones/19/rest = Transform3D(1, -7.67442e-15, 8.04847e-16, 7.67442e-15, 1, -1.30385e-08, -8.04847e-16, 1.30385e-08, 1, -2.18194e-16, 0.132915, 3.58256e-09) bones/19/enabled = true bones/19/position = Vector3(-2.18194e-16, 0.132915, 3.58256e-09) -bones/19/rotation = Quaternion(0.0118251, 1.46099e-10, -3.72848e-09, 0.99993) +bones/19/rotation = Quaternion(0.0575093, -2.64639e-10, 1.06806e-08, 0.998345) bones/19/scale = Vector3(1, 1, 1) bones/20/name = "Tail_3" bones/20/parent = 19 bones/20/rest = Transform3D(1, 2.7755e-17, -3.2406e-22, -2.7755e-17, 1, 4.44089e-16, 3.2406e-22, -4.44089e-16, 1, -1.06859e-15, 0.132915, -2.98023e-08) bones/20/enabled = true bones/20/position = Vector3(-1.06859e-15, 0.132915, -2.98023e-08) -bones/20/rotation = Quaternion(0.200005, 1.25023e-09, 5.66974e-10, 0.979795) +bones/20/rotation = Quaternion(0.223543, -5.7256e-10, 3.26841e-10, 0.974694) bones/20/scale = Vector3(1, 1, 1) bones/21/name = "Tail_4" bones/21/parent = 20 bones/21/rest = Transform3D(1, -1.66534e-16, -3.01094e-22, 1.66534e-16, 1, -1.52933e-31, 3.01094e-22, 1.52933e-31, 1, -1.08247e-15, 0.132915, -2.98023e-08) bones/21/enabled = true bones/21/position = Vector3(-1.08247e-15, 0.132915, -2.98023e-08) -bones/21/rotation = Quaternion(0.264251, 2.84097e-09, 2.90722e-09, 0.964454) +bones/21/rotation = Quaternion(0.2199, 2.38204e-09, 2.84131e-09, 0.975523) bones/21/scale = Vector3(1, 1, 1) bones/22/name = "Bone.003" bones/22/parent = 4 bones/22/rest = Transform3D(1, -2.52911e-08, 2.42892e-08, -2.46374e-08, -0.999648, -0.0265292, 2.49602e-08, 0.0265384, -0.999301, -6.73036e-16, -3.05783e-08, 9.54189e-10) bones/22/enabled = true bones/22/position = Vector3(-8.17478e-10, -0.0291115, 0.00627533) -bones/22/rotation = Quaternion(0.98714, 0.013185, 0.119704, 0.10513) +bones/22/rotation = Quaternion(0.962388, 0.0234455, 0.250303, 0.102994) bones/22/scale = Vector3(0.963893, 0.963829, 0.963391) bones/23/name = "Bone.002" bones/23/parent = 22 bones/23/rest = Transform3D(1, -6.32392e-08, -2.05583e-08, 6.54265e-08, 0.99095, 0.134251, 1.18823e-08, -0.134252, 0.990945, 0.103074, 0.0448339, 0.0144275) bones/23/enabled = true bones/23/position = Vector3(0.103074, 0.0448339, 0.0144275) -bones/23/rotation = Quaternion(-0.16581, -0.356038, -0.0956528, 0.914656) +bones/23/rotation = Quaternion(-0.333936, -0.332093, -0.163408, 0.86689) bones/23/scale = Vector3(1.00015, 0.999976, 0.999842) bones/24/name = "L_leg_3" bones/24/parent = 23 bones/24/rest = Transform3D(1, 1.08439e-07, 8.38245e-08, -8.5507e-08, 0.971505, -0.236848, -1.07119e-07, 0.236826, 0.971595, -1.08868e-09, 0.131148, 8.6705e-09) bones/24/enabled = true bones/24/position = Vector3(-1.08868e-09, 0.131148, 8.6705e-09) -bones/24/rotation = Quaternion(0.281487, 6.37091e-08, -1.13096e-07, 0.959565) +bones/24/rotation = Quaternion(0.550784, 8.8983e-09, -2.37161e-07, 0.834648) bones/24/scale = Vector3(1, 0.999986, 1.00002) bones/25/name = "R_leg_1" bones/25/parent = 22 bones/25/rest = Transform3D(1, 7.58753e-08, -6.68644e-08, -6.62115e-08, 0.99095, 0.134251, 7.64456e-08, -0.134252, 0.990945, -0.103074, 0.0448339, 0.0144275) bones/25/enabled = true bones/25/position = Vector3(-0.103074, 0.0448339, 0.0144275) -bones/25/rotation = Quaternion(-0.0622199, 0.257646, 0.141484, 0.953798) +bones/25/rotation = Quaternion(-0.268504, 0.22333, 0.21247, 0.912626) bones/25/scale = Vector3(1.00008, 0.999967, 0.999928) bones/26/name = "R_leg_2" bones/26/parent = 25 bones/26/rest = Transform3D(1, -1.08439e-07, -8.38245e-08, 8.5507e-08, 0.971505, -0.236848, 1.07119e-07, 0.236826, 0.971595, 1.08867e-09, 0.131148, 8.80553e-09) bones/26/enabled = true bones/26/position = Vector3(1.08867e-09, 0.131148, 8.80553e-09) -bones/26/rotation = Quaternion(0.162009, -2.87607e-08, 7.16683e-08, 0.986789) +bones/26/rotation = Quaternion(0.500766, -5.05454e-08, 1.90951e-07, 0.865583) bones/26/scale = Vector3(1, 0.99997, 1.00006) bones/27/name = "Bone.013" bones/27/parent = -1 diff --git a/scenes/Pawn.tscn b/scenes/Pawn.tscn index 54bef82..4299eb5 100644 --- a/scenes/Pawn.tscn +++ b/scenes/Pawn.tscn @@ -2092,15 +2092,15 @@ bones/4/name = "Bone" bones/4/parent = -1 bones/4/rest = Transform3D(1, -2.5291e-08, -6.43127e-08, 6.49611e-08, 0.0265338, 0.999648, -2.35757e-08, -0.999648, 0.0265338, 1.86265e-09, 0.417916, -2.98023e-08) bones/4/enabled = true -bones/4/position = Vector3(3.56931e-09, 0.391389, -0.00070416) -bones/4/rotation = Quaternion(-0.621564, 0.112448, 0.0911015, 0.76988) +bones/4/position = Vector3(3.09355e-09, 0.398784, -0.000507875) +bones/4/rotation = Quaternion(-0.619563, 0.127478, 0.103939, 0.76752) bones/4/scale = Vector3(1, 1, 1) bones/5/name = "Bone.001" bones/5/parent = 4 bones/5/rest = Transform3D(1, 6.49611e-08, 3.22196e-08, 3.04846e-08, 0.0265337, -0.999648, -6.57931e-08, 0.999648, 0.0265337, 5.25223e-09, 1.53668e-08, 0.132351) bones/5/enabled = true bones/5/position = Vector3(5.25223e-09, 1.53668e-08, 0.132351) -bones/5/rotation = Quaternion(0.656718, 3.94525e-08, -3.71106e-09, 0.754136) +bones/5/rotation = Quaternion(0.665684, 4.35646e-08, -1.03882e-09, 0.746234) bones/5/scale = Vector3(1, 1, 1) bones/6/name = "Hood" bones/6/parent = 5 @@ -2121,14 +2121,14 @@ bones/8/parent = 7 bones/8/rest = Transform3D(0.432955, 0.625736, -0.648848, 0.0448991, 0.703947, 0.708832, 0.900297, -0.336025, 0.276682, 5.82709e-08, 0.177444, -2.03371e-08) bones/8/enabled = true bones/8/position = Vector3(5.82709e-08, 0.177444, -2.03371e-08) -bones/8/rotation = Quaternion(-0.642578, -0.127206, -0.224313, 0.721523) +bones/8/rotation = Quaternion(-0.645069, -0.125187, -0.207746, 0.724607) bones/8/scale = Vector3(1, 1, 1) bones/9/name = "Bone.007" bones/9/parent = 8 bones/9/rest = Transform3D(0.993116, 0.117134, -5.41402e-07, -0.117134, 0.993116, 5.5995e-07, 6.03264e-07, -4.92679e-07, 1, -7.73984e-09, 0.162903, -8.55013e-08) bones/9/enabled = true bones/9/position = Vector3(-7.73984e-09, 0.162903, -8.55013e-08) -bones/9/rotation = Quaternion(-1.66923e-06, -3.21303e-07, -0.553467, 0.832871) +bones/9/rotation = Quaternion(-1.6845e-06, -2.65487e-07, -0.572392, 0.81998) bones/9/scale = Vector3(1, 1, 1) bones/10/name = "Sword" bones/10/parent = 9 @@ -2141,15 +2141,15 @@ bones/11/name = "Bone.008" bones/11/parent = 4 bones/11/rest = Transform3D(1, 3.55271e-15, -3.8117e-08, 3.81036e-08, -0.0265341, 0.999648, -1.0114e-09, -0.999648, -0.0265341, 0.480619, 0.00333734, 0.125734) bones/11/enabled = true -bones/11/position = Vector3(0.327701, 0.00458496, -0.0915058) -bones/11/rotation = Quaternion(-0.76988, 0.0911015, -0.112448, 0.621564) +bones/11/position = Vector3(0.327701, 0.00475042, -0.085273) +bones/11/rotation = Quaternion(-0.767521, 0.103935, -0.127474, 0.619564) bones/11/scale = Vector3(1, 1, 1) bones/12/name = "Bone.011" bones/12/parent = 4 bones/12/rest = Transform3D(1, 3.10862e-15, -6.95332e-09, 6.95087e-09, -0.0265341, 0.999648, -1.84497e-10, -0.999648, -0.0265341, 0.287738, 0.203267, 0.120427) bones/12/enabled = true bones/12/position = Vector3(0.291431, 0.236535, 0.000400938) -bones/12/rotation = Quaternion(-0.76988, 0.0911015, -0.112448, 0.621564) +bones/12/rotation = Quaternion(-0.767521, 0.103935, -0.127474, 0.619564) bones/12/scale = Vector3(1, 1, 1) bones/13/name = "Bone.019" bones/13/parent = 4 @@ -2163,91 +2163,91 @@ bones/14/parent = 13 bones/14/rest = Transform3D(0.432955, -0.625736, 0.648848, -0.044899, 0.703947, 0.708832, -0.900297, -0.336025, 0.276683, 4.20827e-08, 0.177444, 3.85194e-08) bones/14/enabled = true bones/14/position = Vector3(4.20827e-08, 0.177444, 3.85194e-08) -bones/14/rotation = Quaternion(-0.6754, 0.460753, 0.25957, 0.513969) +bones/14/rotation = Quaternion(-0.673173, 0.46079, 0.266585, 0.513267) bones/14/scale = Vector3(1, 1, 1) bones/15/name = "Bone.021" bones/15/parent = 14 bones/15/rest = Transform3D(0.993116, -0.117134, 4.12768e-07, 0.117134, 0.993116, 8.259e-07, -5.06667e-07, -7.71865e-07, 1, 1.81458e-10, 0.162903, -8.5116e-09) bones/15/enabled = true bones/15/position = Vector3(1.81458e-10, 0.162903, -8.5116e-09) -bones/15/rotation = Quaternion(-1.89459e-06, 2.57269e-07, 0.459657, 0.888097) +bones/15/rotation = Quaternion(-1.87427e-06, 2.85283e-07, 0.445694, 0.895186) bones/15/scale = Vector3(1, 1, 1) bones/16/name = "Bone.022" bones/16/parent = 4 bones/16/rest = Transform3D(1, 3.55271e-15, -3.8117e-08, 3.81036e-08, -0.0265341, 0.999648, -1.0114e-09, -0.999648, -0.0265341, -0.480619, 0.00333737, 0.125734) bones/16/enabled = true -bones/16/position = Vector3(-0.358609, -0.128832, -0.0422495) -bones/16/rotation = Quaternion(-0.76988, 0.0911015, -0.112448, 0.621564) +bones/16/position = Vector3(-0.358609, -0.128953, -0.046814) +bones/16/rotation = Quaternion(-0.767521, 0.103935, -0.127474, 0.619564) bones/16/scale = Vector3(1, 1, 1) bones/17/name = "Bone.023" bones/17/parent = 4 bones/17/rest = Transform3D(1, 4.88498e-15, -6.95333e-09, 6.95088e-09, -0.0265341, 0.999648, -1.84495e-10, -0.999648, -0.0265341, -0.287738, 0.203267, 0.120427) bones/17/enabled = true bones/17/position = Vector3(-0.285902, 0.16505, -0.138443) -bones/17/rotation = Quaternion(-0.76988, 0.0911015, -0.112448, 0.621564) +bones/17/rotation = Quaternion(-0.767521, 0.103935, -0.127474, 0.619564) bones/17/scale = Vector3(1, 1, 1) bones/18/name = "Tail_1" bones/18/parent = 4 bones/18/rest = Transform3D(1, 2.31377e-08, 6.49611e-08, -2.48533e-08, 0.999648, 0.0265338, -6.43243e-08, -0.0265338, 0.999648, 7.52368e-09, 0.139991, -0.0720165) bones/18/enabled = true bones/18/position = Vector3(7.52368e-09, 0.139991, -0.0720165) -bones/18/rotation = Quaternion(0.0124457, 3.02644e-08, -1.85461e-08, 0.999923) +bones/18/rotation = Quaternion(0.057263, 2.3844e-08, -1.97502e-08, 0.998359) bones/18/scale = Vector3(1, 1, 1) bones/19/name = "Tail_2" bones/19/parent = 18 bones/19/rest = Transform3D(1, -3.40006e-15, -2.66127e-15, 3.40006e-15, 1, 7.45058e-09, 2.66127e-15, -7.45058e-09, 1, 5.70345e-16, 0.132915, -2.04718e-09) bones/19/enabled = true bones/19/position = Vector3(5.70345e-16, 0.132915, -2.04718e-09) -bones/19/rotation = Quaternion(0.151639, -2.47278e-09, -6.88993e-09, 0.988436) +bones/19/rotation = Quaternion(0.0224449, -1.59029e-09, 1.64398e-09, 0.999748) bones/19/scale = Vector3(1, 1, 1) bones/20/name = "Tail_3" bones/20/parent = 19 bones/20/rest = Transform3D(1, 9.71445e-17, -8.4713e-22, -9.71445e-17, 1, 2.13933e-24, 8.4713e-22, -2.13933e-24, 1, -1.10819e-15, 0.132915, -2.98023e-08) bones/20/enabled = true bones/20/position = Vector3(-1.10819e-15, 0.132915, -2.98023e-08) -bones/20/rotation = Quaternion(0.113666, -6.23786e-10, -7.69059e-10, 0.993519) +bones/20/rotation = Quaternion(0.0690087, -6.21426e-09, 1.10027e-09, 0.997616) bones/20/scale = Vector3(1, 1, 1) bones/21/name = "Tail_4" bones/21/parent = 20 bones/21/rest = Transform3D(1, 9.71445e-17, -9.72421e-26, -9.71445e-17, 1, 2.13933e-24, 9.72421e-26, -2.13933e-24, 1, -1.16371e-15, 0.132915, -2.98023e-08) bones/21/enabled = true bones/21/position = Vector3(-1.16371e-15, 0.132915, -2.98023e-08) -bones/21/rotation = Quaternion(0.126685, -1.7055e-08, -1.01494e-08, 0.991943) +bones/21/rotation = Quaternion(0.253993, 1.62019e-08, 4.46843e-09, 0.967206) bones/21/scale = Vector3(1, 1, 1) bones/22/name = "Bone.003" bones/22/parent = 4 bones/22/rest = Transform3D(1, -6.49611e-08, -1.74055e-08, 1.56754e-08, -0.0265388, 0.999648, -6.54002e-08, -0.999648, -0.0265388, -2.83161e-15, -1.57499e-10, -3.06139e-08) bones/22/enabled = true bones/22/position = Vector3(-2.27119e-09, -0.00627534, -0.0291115) -bones/22/rotation = Quaternion(-0.769881, 0.091102, -0.112448, 0.621562) +bones/22/rotation = Quaternion(-0.767523, 0.103935, -0.127473, 0.619562) bones/22/scale = Vector3(0.963893, 0.963829, 0.963391) bones/23/name = "Bone.002" bones/23/parent = 22 bones/23/rest = Transform3D(1, -5.68103e-08, -1.28744e-07, 7.358e-08, 0.990947, 0.13425, 1.19952e-07, -0.13425, 0.990947, 0.103074, 0.0448339, 0.0144274) bones/23/enabled = true bones/23/position = Vector3(0.103074, 0.0448339, 0.0144274) -bones/23/rotation = Quaternion(-0.313901, -0.335747, -0.155549, 0.874383) +bones/23/rotation = Quaternion(-0.286163, -0.340385, -0.144136, 0.88401) bones/23/scale = Vector3(1.00015, 0.999976, 0.999842) bones/24/name = "L_leg_3" bones/24/parent = 23 bones/24/rest = Transform3D(1, 1.46768e-07, 1.41892e-07, -1.08988e-07, 0.97155, -0.236835, -1.72615e-07, 0.236835, 0.97155, -1.09502e-08, 0.131148, -7.90992e-09) bones/24/enabled = true bones/24/position = Vector3(-1.09502e-08, 0.131148, -7.90992e-09) -bones/24/rotation = Quaternion(0.521011, 6.54513e-08, -2.63067e-07, 0.85355) +bones/24/rotation = Quaternion(0.478564, 5.97131e-08, -2.19738e-07, 0.878053) bones/24/scale = Vector3(1, 0.999986, 1.00002) bones/25/name = "R_leg_1" bones/25/parent = 22 bones/25/rest = Transform3D(1, 5.68103e-08, 2.09964e-07, -8.44838e-08, 0.990947, 0.13425, -2.00436e-07, -0.13425, 0.990947, -0.103074, 0.0448339, 0.0144275) bones/25/enabled = true bones/25/position = Vector3(-0.103074, 0.0448339, 0.0144275) -bones/25/rotation = Quaternion(-0.2471, 0.227702, 0.204001, 0.919499) +bones/25/rotation = Quaternion(-0.216759, 0.233527, 0.192765, 0.928075) bones/25/scale = Vector3(1.00008, 0.999967, 0.999928) bones/26/name = "R_leg_2" bones/26/parent = 25 bones/26/rest = Transform3D(1, -1.57459e-07, -1.39286e-07, 1.19991e-07, 0.97155, -0.236835, 1.72615e-07, 0.236835, 0.97155, 1.35965e-08, 0.131148, -5.11595e-09) bones/26/enabled = true bones/26/position = Vector3(1.35965e-08, 0.131148, -5.11595e-09) -bones/26/rotation = Quaternion(0.467974, -2.9437e-08, 2.02676e-07, 0.883742) +bones/26/rotation = Quaternion(0.41999, -5.6328e-08, 2.1414e-07, 0.907529) bones/26/scale = Vector3(1, 0.99997, 1.00006) bones/27/name = "Bone.013" bones/27/parent = -1 diff --git a/scripts/Pawn.gd b/scripts/Pawn.gd index 68b39ea..856f20c 100644 --- a/scripts/Pawn.gd +++ b/scripts/Pawn.gd @@ -39,7 +39,8 @@ func _on_entity_moving(new_position, speed): var vector = Vector2(new_pawn_position.y, new_pawn_position.x) - Vector2(self.position.z, self.position.x) var angle = vector.angle() - var new_rotation = lerp_angle(position.y, angle, 1) + var new_rotation = rotation.y + wrapf(angle - rotation.y, -PI, PI) + tween.tween_property(self, "rotation:y", new_rotation, 0.1) func update_chunk(): diff --git a/test.tscn b/test.tscn deleted file mode 100644 index ee5d801..0000000 --- a/test.tscn +++ /dev/null @@ -1,14 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://bcxd0xne1kr6k"] - -[ext_resource type="Script" path="res://scripts/Camera3D.gd" id="1_qivxh"] - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_i31hb"] - -[node name="Node3D" type="Node3D"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="."] -mesh = SubResource("CapsuleMesh_i31hb") - -[node name="Camera3D" type="Camera3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.97424) -script = ExtResource("1_qivxh")