Struct WaterSample
The water over a place at a tick.
public struct WaterSample
- Inherited Members
Fields
Body
What stands here; None where nothing does.
public WaterBody Body
Field Value
Current
The water's horizontal velocity, m/s: a river's current; zero on a lake or the sea.
public Vector2 Current
Field Value
- Vector2
Surface
The still surface, world metres; negative infinity where there is no water.
public float Surface
Field Value
Properties
Dry
public static WaterSample Dry { get; }
Property Value
Present
True where any water stands over the place (though the ground may still stand above it: compare).
public bool Present { get; }
Property Value
Methods
DepthOf(float)
How far under the surface a height is, metres; negative above it.
public float DepthOf(float y)
Parameters
yfloat