Skip to main content
Skip to main content

setShallowWaterSimulationParameters

setShallowWaterSimulationParameters

Description

Sets various simulation parameters of the shallow water simulation

Definition

setShallowWaterSimulationParameters(entityId shallowWaterSimulation, float deltaTime, float externalAcceleration, float velocityDampening)

Arguments

entityIdshallowWaterSimulationid of the shallow water simulation
floatdeltaTimetime step size for each iteration
floatexternalAccelerationexternal downwards accelerations (mostly gravity)
floatvelocityDampeningartificial dampening factor between 0 and 1 (default: 1.0) that slows down velocities over time and causes the water to calm. even high values (e.g. 0.999) will significantly reduce how turbulent the water looks