Tag Info

New answers tagged

0

You can do a partially update of your world. Whenever you place/remove a block from your world, check all adjacent blocks. If you place a block A ontop of Block B, then you check all sides around A. If any block (for example B) is directly below, one to the side and below or directly adjacent (if you want to support that), then place the block and it will ...


1

What I would do is find each of the blocks neighbors (except above). Then for each one of it's neighbors, find that blocks neighbors. Then for each of those neighbors, find the next neighbors, etc. etc. Eventually you will find all of the connected neighbors in a sort of parent-child tree like user3667971 mentioned. If any of those blocks are connected to ...


1

Why don't you implement a child parent system? If a block is placed next to a block of the same type or a supported connecting block then add the new block as a child. That way it keeps the data from the parent block relative. You can then remove that child if say it was destroyed and add physics support so you can see what would happen to the child of the ...



Top 50 recent answers are included