Struct ScenePathStyle
A path class's numbers: its width, surface and kept-ness; how steep it may climb and how it meets the ground.
public readonly struct ScenePathStyle
- Inherited Members
Constructors
ScenePathStyle(ScenePathClass, float, ScenePathSurface, float, float, float, float, float, float, float, float, float, bool)
public ScenePathStyle(ScenePathClass kind, float halfWidth, ScenePathSurface surface, float wear, float farWear, float maxGrade, float shoulder, float dip, float maxCut, float smoothMetres, float clearance, float fordDepth, bool clearsDetails)
Parameters
kindScenePathClasshalfWidthfloatsurfaceScenePathSurfacewearfloatfarWearfloatmaxGradefloatshoulderfloatdipfloatmaxCutfloatsmoothMetresfloatclearancefloatfordDepthfloatclearsDetailsbool
Fields
Class
public readonly ScenePathClass Class
Field Value
Clearance
Metres past the trodden edge kept clear of trees and rocks.
public readonly float Clearance
Field Value
ClearsDetails
True when the scatter grows no details on its trodden width (a road); a trail's grass is thinned by the shaders instead.
public readonly bool ClearsDetails
Field Value
CutMetres
How deep a cut straight road is sunk below the ground beside it, metres (a via cava's walls).
public const float CutMetres = 5
Field Value
Dip
How far below the ground beside it the way is worn, metres.
public readonly float Dip
Field Value
FarWear
How kept it is at its far end, 0 … 1 (a spur fades toward a lost place).
public readonly float FarWear
Field Value
FordDepth
The deepest water it wades, metres; deeper takes a bridge.
public readonly float FordDepth
Field Value
HalfWidth
Half the trodden width, metres.
public readonly float HalfWidth
Field Value
MaxCut
The most it may cut into or build above the ground, metres: a trail follows the ground, a highway levels it.
public readonly float MaxCut
Field Value
MaxGrade
The grade it is routed under (rise over run): steeper costs dearly, so it winds or switches back.
public readonly float MaxGrade
Field Value
RaisedMetres
How high a raised straight road's embankment stands over the ground beside it, metres (a sacbe's 0.5–2.5 m).
public const float RaisedMetres = 1.2
Field Value
Shoulder
Metres past the trodden edge over which the carve blends back into the ground.
public readonly float Shoulder
Field Value
SmoothMetres
The length over which its profile is evened along the way, metres.
public readonly float SmoothMetres
Field Value
Surface
public readonly ScenePathSurface Surface
Field Value
Wear
How kept the way is where it leaves the network, 0 … 1.
public readonly float Wear
Field Value
Methods
For(ScenePathClass)
The numbers for each class. Grades after real practice: a paved highway keeps under about 8 %, a carriage road 11 %, a cart 15 %; a footpath takes a quarter and a hill trail the steepest a walker climbs without hands. Widths: a single file trail 0.8 m, a footpath 1.3 m, a cart's gauge with its verges 3 m, a road two carts.
public static ScenePathStyle For(ScenePathClass kind)
Parameters
kindScenePathClass
Returns
For(ScenePathClass, ScenePathForm)
A way's numbers by its class and form (Form, 2026-10-26, phase I2l-b): a routed way's are its class's exactly (For(ScenePathClass)). A straight road evens its line over twice its class's length and cuts and fills up to 4 m to hold its grade; a raised one stands RaisedMetres over the ground between short steep sides; a cut one lies CutMetres down between near-sheer walls. The trodden width, surface and grade are the class's.
public static ScenePathStyle For(ScenePathClass kind, ScenePathForm form)
Parameters
kindScenePathClassformScenePathForm
Returns
Of(ScenePath)
A way's own numbers: its class's in its form (For(ScenePathClass, ScenePathForm)).
public static ScenePathStyle Of(ScenePath path)
Parameters
pathScenePath
Returns
SurfaceCode(ScenePathSurface)
The surface as the shader's code: track 0, earth ⅓, gravel ⅔, stone 1. Where two ways meet the field blends their codes, so the order is the order a blend passes through: the track (earth with ruts and a grass median) sits at the end, where the bake's first order (earth 0, track ⅓) put it between earth and gravel — a footpath running into a road grew a stretch of ruts and median grass at the seam (field encoding 2, Encoding).
public static float SurfaceCode(ScenePathSurface surface)
Parameters
surfaceScenePathSurface