diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-20 18:52:46 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-20 18:52:46 -0400 |
commit | 743c526b46a1d1c6e0b7ef8b9b0f10b22ee43ab3 (patch) | |
tree | d7e1a2f2c0182664b7fe0e5b40d8b35a7433f8fa /world/chunk/Chunk.gd | |
parent | 02cbcb1a7f09c2b4d9ca89bb25cfc0a8a4354b63 (diff) | |
download | godot_wildjam_49-743c526b46a1d1c6e0b7ef8b9b0f10b22ee43ab3.tar.gz godot_wildjam_49-743c526b46a1d1c6e0b7ef8b9b0f10b22ee43ab3.zip |
Simplify and Fix Monument Code
Simplify the monument chunks to just be a bounding box with the scene origin at the center.
This allows us to automatically calculate the chunks with only the bounds provided.
It also fixes the issues with scaling and rotation.
Diffstat (limited to 'world/chunk/Chunk.gd')
-rw-r--r-- | world/chunk/Chunk.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/world/chunk/Chunk.gd b/world/chunk/Chunk.gd index a7d18a2..d1f91f7 100644 --- a/world/chunk/Chunk.gd +++ b/world/chunk/Chunk.gd @@ -11,7 +11,7 @@ onready var _collision_enabled = lod_close.collision_layer func _ready(): lod_update() - $"%Coords".text = str(ChunkLoader.v2_coords(self.transform.origin)) + $"Coords".text = str(ChunkLoader.v2_coords(self.transform.origin)) func lod_update(): match lod: |