public readonly record struct WaterProfilePointWhat a body is like at one point along its spline.
Remarks
Unreal's four channels, because they are the right four ([35 § D6](../../docs/plan/35-water.md#d6-a-water-body-is-a-spline-and-a-profile-and-there-is-no-new-spline)) — and the fourth is the one everybody forgets until the river is silent.
Authored per control point and interpolated along the curve, so a river narrows into a gorge and widens at its mouth without being two bodies.
Fields and properties (6)
public float HalfWidthHow far the channel reaches either side of the curve, in metres.
public float DepthHow far below the surface the bed sits at the body's middle, in metres.
public float VelocityHow fast the water moves downstream here, in metres per second.
public float AudioIntensityHow loud it is here, 0…1.
public static WaterProfilePoint StreamA stream: four metres wide, one deep, moving at walking pace.
public static WaterProfilePoint StillStill water: no width of its own, two metres deep, going nowhere.
Methods (1)
public WaterProfilePoint Lerp(in WaterProfilePoint other, float t)This profile blended toward another.
Used by (17)
- BuoyancyTestsVixen.Water.Tests
- LakeVixen.Water.Physics.Tests
- TypeRegistrationVixen.Rendering.Water
- UnderwaterShapeTestsVixen.Rendering.Water.Tests
- Vixen_Water_WaterProfilePointSerializerVixen.Water
- WaterBodyVixen.Water
- WaterBodyComponentVixen.Rendering.Water
- WaterCarveTestsVixen.Water.Tests
- WaterDebugDrawVixen.Rendering.Water
- WaterEvaluatorTestsVixen.Water.Tests
- WaterFieldTestsVixen.Water.Tests
- WaterSurfaceMeshTestsVixen.Water.Tests
- WaterZoneSystemTestsVixen.Rendering.Water.Tests
- WaterZoneTestsVixen.Water.Tests
- WaterBodySettingsVixen.Editor.Water
- WaterEditVixen.Editor.Water
- WaterEditTestsVixen.Editor.Water.Tests