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.
active
boolean
Sets the water surface to active (true: activate, false: deactivate)
- Sample - Refer to function init. 
 
setColor(color)
Sets the color of the water surface.
- Sample - Refer to function SetFloodColor. 
 
setHeight(height)
Sets the reference height for the water surface.
height
number
Reference height for the water surface (based on sea level, in meters)
- Sample - Refer to function setFloodHeight. 
 
setVisibleAltitude(altitude)
Sets the visible distance for the water surface representation.
The higher the number, the water surface is visible from a farther distance.
altitude
number
Visible distance for the water surface (in meters)
- Sample - Refer to function setFloodVisibleAltitude. 
 
setWaterSpeed(speed)
Sets the flow speed of the water surface.
The higher the number, the faster the flow speed.
speed
number
Water surface flow speed
- Sample - Refer to function SetWaterSpeed. 
 
visibleWaterPlane(type)
Sets the visibility of the water surface on the screen.
type
boolean
Water surface visualization (true: show, false: hide)
- Sample - Refer to function visibleWaterPlane. 
 
Last updated
