Skip to main content

Module conversion

Module conversion 

Source
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).