Skip to main content
Skip to main content

shallowWaterSimulationPaintVelocityCircle

shallowWaterSimulationPaintVelocityCircle

Description

Adds velocity into the simulation in the shape of a circle

Definition

shallowWaterSimulationPaintVelocityCircle(entityId shallowWaterSimulation, float x, float y, float radius, float velocityX, float velocityY, float? paintHeight)

Arguments

entityIdshallowWaterSimulationid of the shallow water simulation
floatxx position of the circle center (world coordinates)
floatyy position of the circle center (world coordinates)
floatradiusradius of the circle (world size)
floatvelocityXvalue to be added to the x component of velocity
floatvelocityYvalue to be added to the y component of velocity
float?paintHeight[optional] height that the paint should happen at. will only be painted if waterHeight in that location >= paintHeight