csharp
public readonly record struct WaterSampleWhat the surface is like at one place and time.
Remarks
The one answer the vertex stage, the buoyancy solver and a gameplay query all get. That there is exactly one of these is [§ D2](../../docs/plan/35-water.md#d2-one-evaluator-two-hosts-and-the-seam-is-a-test), and it is what makes a boat float at the height the water is drawn at.
Fields and properties (7)
public float HeightWhere the surface is, in world units.
public Vector3 NormalWhich way it faces. Unit length, and up where there is no water.
public Vector2 FlowHow fast the water moves, in metres per second, on the ground plane.
public float DepthHow deep the water is, in metres — surface minus ground.
public float CoverageWhether there is water here at all, 0…1.
public static WaterSample NoneDry land.
public bool IsWetWhether there is water here.
Methods (1)
Used by (8)
- BuoyancyVixen.Water
- UnderwaterRendererVixen.Rendering.Water
- UnderwaterShapeVixen.Rendering.Water
- WaterEvaluatorVixen.Water
- WaterEvaluatorTestsVixen.Water.Tests
- WaterQueryVixen.Water
- WaterZoneTestsVixen.Water.Tests
- WaterPresenterVixen.Editor.App