Skip to main content

get_flow

Function get_flow 

Source
pub fn get_flow(
    world: &Arc<World>,
    pos: BlockPos,
    fluid_state: FluidState,
) -> DVec3
Expand description

Computes the horizontal flow direction of a fluid, weighted by the height difference to same-fluid neighbors.