Files
Terrarum/work_files/GameDesign/FLUID_SIMULATION.md
Minjae Song 6e4cea28e7 see page 9
2018-12-12 18:49:18 +09:00

13 lines
697 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#### Before we begin, please read following articles:
- Celluar Automata https://w-shadow.com/blog/2009/09/01/simple-fluid-simulation/
- Pressure sim in DF (see Page 9) http://www.gamasutra.com/view/feature/131954/interview_the_making_of_dwarf_.php
### Serialisation
- FluidType: Hashed list of BlockAddress, Int
- FluidFill: Hashed list of BlockAddress, Float32
### Notes
- By doing this, you dont need 16 blocks to represent a water; you only need 1 block for all kinds of fluids
- Storing the overfill (treat water as compressible) is important, will work as a temporary storage until the overfill is resolved, and rim of the update area will always be overfilled before they get updated