0
\$\begingroup\$

I know that once all the cubes that are connected are destroyed, the unconnected blocks collapse. How do you find out the unconnected blocks?

edit 1: How would you determine the collapsible object if it spans multiple chunks?

\$\endgroup\$
2

1 Answer 1

0
\$\begingroup\$

I would assume that each voxel object contains a reference to its adjacent voxels. When a voxel is changed it calls some kind of update function on each of those references.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged .