Skip to content

TrackSectionPoint

Defined in: packages/engine/src/render/trackSurface.ts:25

One point of a track’s cross-section, in track coordinates. The points run from the left of travel to the right, and the surface runs straight between them.

Property Type Default value Description
across number undefined Metres across, positive to the right of travel, measured from from.
from? "left" | "right" | "center" "center" Where across is measured from: the centerline, or the track’s left or right edge. A point measured from an edge keeps its distance to that edge as the track widens, as a shoulder does.
height? number 0 Metres above the track, along its up.
spans? number 1 How many strips the surface from this point to the next is cut into: more follow a lift more closely.
wall? boolean false The surface from this point to the next is a wall face: it shades flat from the crease, rather than blending into the ground beside it.