Hello all,
I really need a good solution for voxel water like minecraft, cannot seem to find anything anywhere for this.
I am using Uniblocks as a base, but no clue how to make liquids and cannot seem to find anything on it.
any help is appreciated!
-Winter
Don’t know if this will help, but it appears that the liquids in Minecraft run on pretty simple rules.
“Water will travel a distance of 8 blocks with the counter resetting to 0 every time it lands on a lower level.” Taken directly from the wikipedia post.
It seems the simple solution would be to give the water a depth counter. Then check each direction to see if the ground is flat, higher, or lower. If the ground is flat, continue in that direction and subtract one from the water’s depth on that spot. If the ground is lower, reset the depth and continue. If the ground is higher or the depth is one (or zero, really a preference) then don’t add any water.
This method will likely give you a result very similar to Minecraft, clunky though it may be. If you were hoping for a fleshed out script, sorry I couldn’t deliver.
Thanks MasterGalaxy, that is helpful