Jump to content

Latest Visitors

- - - - -


4: Adsense

moist...? Messing around with the water simulation in the ecosim. Trying to get it to flow over the height map properly. I think my values are just off scale or I'm still not getting the rules right.

Currently this is the rules governing how water flows.

For each Cell;
-- if Cell water > threshold

---- if Cell height > neighbor height

------ if Cell water > neighbor water - height difference

-------- Spread water from Cell to neighbor

Basically, the cells height has to be greater or within a range of the neighbor. Then the cell must have more water that the neighbor before the cell will spread it's water.

Happy Coding

Note: GameDev.net moderates comments.