WaterHeight()

语法

WaterHeight(#Camera, x, y)
概要
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.

参数

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

返回值

The absolute water height, in world units.

参阅

CreateWater()

已支持操作系统

所有

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