Expand description
Fluid state computation and source conversion logic.
Equivalent to FlowingFluid#getNewLiquid and related helpers.
Functionsยง
- can_
flow_ ๐down_ into - get_
new_ liquid - Calculates the new fluid state at a position based on neighbors.
- get_
slope_ ๐distance - Computes slope distance using DFS search.
- get_
spread - Gets the spread map for a fluid.
- is_hole
- Returns true if the position below is a hole (fluid can flow downward).