JSFlood

API for creating and setting water surface features.

Created with the Module.getFlood API.

var flood = Module.getFlood();

active(active)

Sets the water surface to active or inactive.

Name
Type
Description

active

boolean

Sets the water surface to active (true: activate, false: deactivate)

setColor(color)

Sets the color of the water surface.

Name
Type
Description

color

Water surface color

setHeight(height)

Sets the reference height for the water surface.

Name
Type
Description

height

number

Reference height for the water surface (based on sea level, in meters)

setVisibleAltitude(altitude)

Sets the visible distance for the water surface representation.

The higher the number, the water surface is visible from a farther distance.

Name
Type
Description

altitude

number

Visible distance for the water surface (in meters)

setWaterSpeed(speed)

Sets the flow speed of the water surface.

The higher the number, the faster the flow speed.

Name
Type
Description

speed

number

Water surface flow speed

visibleWaterPlane(type)

Sets the visibility of the water surface on the screen.

Name
Type
Description

type

boolean

Water surface visualization (true: show, false: hide)

Last updated