WaterHeight()

Syntax

WaterHeight(#Camera, x, y)
Description
Gets the current water height at the specified position. CreateWater() has to be called before calling this function. As water can have waves, the height isn't always the same accross the water. This function can be useful to allow an object to float over the water.

Parameters

#Camera The camera to use.
x, y The coordinates to use get the height.

Return value

The absolute water height, in world units.

See Also

CreateWater()

Supported OS

All

<- WaterColor() - Engine3D Index - WorldCollisionAppliedImpulse() ->