How can I create a terrain that forms around a static mesh, rather than through it?

Chief Man
Fri, 02 Apr 2021 06:27:19 +0000
World Creation

I have a static mesh that looks like a pagoda. I would like to generate a 2000x2000 Minecraft style block terrain with depth (Ex: Generates 50 blocks below the surface on Y axis) that forms around my multiple randomly spawned static mesh. I would like each block of the terrain to be a separate instance so that I can destroy each individual terrain block that overlaps/collides with the static mesh. Currently, my terrain is one big piece that generates right though it, making it impossible to go down into the underground room.

The player needs to be able to drop down that hole to get down to the room, but the world terrain stops them from doing so. How can I generate my terrain so that each block is a separate instance, and so that it allows me to destroy each individual block that the static mesh collides with?

Search up the game “Trove” by Gamigo. My goal is to exactly replicate their world generation system so that I can have hundreds of different dungeons across the open world.

13 posts - 1 participant