Skip to main content
Skip to main content

shallowWaterSimulationPaintDepthRect

shallowWaterSimulationPaintDepthRect

Description

Adds depth into the simulation in the shape of a rectangle

Definition

shallowWaterSimulationPaintDepthRect(entityId shallowWaterSimulation, float x, float y, float width, float height, float value, float? paintHeight)

Arguments

entityIdshallowWaterSimulationid of the shallow water simulation
floatxx position of the rectangle center (world coordinates)
floatyy position of the rectangle center (world coordinates)
floatwidthwidth of the rectangle (world size)
floatheightheight of the rectangle (world size)
floatvalueto be added to depth (can be negative for removing water)
float?paintHeight[optional] height that the paint should happen at. will only be painted if waterHeight in that location >= paintHeight