ufet.blogg.se

Liquid simulation
Liquid simulation







liquid simulation

When I tried to implement this into my engine, I found that my limitations lacked the precision required for it to work. This created a fairly nice simulation, abeit slow (Not lag Changes in the water were taking a while to propagate.), at times.

liquid simulation

When a cell's water content was larger than the normal capacity, the cell would try to expand upwards. I've tried one method so far, but I could not refine it enough to work with my constraints.įor that model, each cell would be slightly compressible, depending on the amount of water in the above cell. Can only use data from cells near it) This model is needed because of the nature of my game, where you cannot be certain that the data you need isn't inside an area that isn't in memory. The water must act somewhat lifelike, with a pressure model that runs entirely local. I'm attempting to add semi-realistic water into my tile-based, 2D platformer.









Liquid simulation