max-mapper/voxel-engine

How to regenerate terrain?

Opened this issue · 1 comments

If I change voxel.generate at runtime. How to make it generate again?

The following code resets the world:

game.voxels.chunks = {};
game.voxels.requestMissingChunks(game.worldOrigin)
game.loadPendingChunks(game.pendingChunks.length)