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?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI 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?
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.