Class TerrainSiteReading
One point's loaded layers, read through the same capabilities as the probes: the ground height
(valheim.world/terrain, loaded-ground, as TerrainProbe), the terrain vertex's own collider
height (valheim.world/terrain-surface, as SurfaceProbe) and the raw paint texel
(valheim.world/terrain-paint, as PaintProbe: R dirt, G cultivated, B paved, A vegetation: 1 where it may grow, 0 where cleared).
public sealed record TerrainSiteReading
- Inheritance
-
objectTerrainSiteReading
Constructors
TerrainSiteReading(TerrainSitePoint, float, float, float, float, float, float)
One point's loaded layers, read through the same capabilities as the probes: the ground height
(valheim.world/terrain, loaded-ground, as TerrainProbe), the terrain vertex's own collider
height (valheim.world/terrain-surface, as SurfaceProbe) and the raw paint texel
(valheim.world/terrain-paint, as PaintProbe: R dirt, G cultivated, B paved, A vegetation: 1 where it may grow, 0 where cleared).
public TerrainSiteReading(TerrainSitePoint Point, float GroundHeight, float ColliderHeight, float R, float G, float B, float A)
Parameters
PointTerrainSitePointGroundHeightfloatColliderHeightfloatRfloatGfloatBfloatAfloat
Properties
A
public float A { get; init; }
Property Value
- float
B
public float B { get; init; }
Property Value
- float
ColliderHeight
public float ColliderHeight { get; init; }
Property Value
- float
G
public float G { get; init; }
Property Value
- float
GroundHeight
public float GroundHeight { get; init; }
Property Value
- float
Point
public TerrainSitePoint Point { get; init; }
Property Value
R
public float R { get; init; }
Property Value
- float