HasWater¶
HasWater(Vector3)¶
Checks whether the position has water.
The purpose of this call is to check the position against local overrides ( WaterBody ) - whether or not they have added or removed water. If there are no local overrides, this will return true, as the global ocean is always present (unless it has been removed globally).
Typically, it is only concerned with the XZ axis, but it will check the Y axis for overrides which also affect the Y axis.
Declaration¶
public bool HasWater(Vector3 position)
Parameters¶
position |
The position to check. |
Return¶
Returns true if there is water at the given position.