u/FlexPcb

Procedural tree collapse

Procedurally collapsing structures is a good way to stylistically control chopping down trees, something that was always a bit underwhelming for me in Minecraft. I think this is a good compromise. It's not limited to trees nor harcoded, any detached set of blocks can tumble if the center of mass is over the "contact point".

u/FlexPcb — 4 days ago

I used a bfs approach that detects detached structures (groups of voxel that do not reach Y=0). For each of the disconnected voxel column, we move the column to the lowest possible point. I think the next step is to add different behavior depending on the block.

u/FlexPcb — 23 days ago