Godot Version
4.4
Question
` Hello everyone. I’m trying to learn Godot 4. I’m trying to write scripts for world generation. Something works, but a strange thing happens. My world is broken into chunks and when generation occurs I get this…
Where is my mistake?
chunk.gd
terrain.gd
noise_manager.gd
`
At a quick glance, I’d guess one of two things:
- your meshes are correct, but they’re being placed too far apart
- your meshes are placed correctly, but slightly are undersized
I’ve tried a many of options. I’ve increased the chunk size, I’ve tried changing the distance between chunks, nothing helps, there’s always a distance between chunks. There’s a bug somewhere, and I can’t find it.
Is it the padding on the heightmap? You might consider making the heightmap a single array and addressing as height_map[(z * chunk_size) + x]
; that will give you a single array and might make sussing the problem out easier.