From d3561eb218d92599be4a2e36bf9f498e8d8cf2ef Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 24 Feb 2026 12:51:05 +0100 Subject: [PATCH] feat: terrain tl is 0,0,0 --- modules/terrain/terrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/terrain/terrain.cpp b/modules/terrain/terrain.cpp index 0c2b8382..2ec49a9a 100644 --- a/modules/terrain/terrain.cpp +++ b/modules/terrain/terrain.cpp @@ -69,7 +69,7 @@ void Terrain::_notification(int what) { void Terrain::construct_chunk_grid() { size_t const chunks_per_side{ this->side_length / this->chunk_size }; - Vector3 const origin{ -(float)this->side_length / 2.f, 0.f, -(float)this->side_length / 2.f }; + Vector3 const origin{ (float)this->chunk_size / 2.f, 0.f, (float)this->chunk_size / 2.f }; for (size_t y{ 0 }; y < chunks_per_side; ++y) { for (size_t x{ 0 }; x < chunks_per_side; ++x) { TerrainChunkMesh *chunk{ memnew(TerrainChunkMesh) };