Skip to content

buildTrackSurface

buildTrackSurface(__namedParameters): BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>

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

A track’s drawn surface: the cross-section laid every spacing metres along it, raised by lift, grouped by zone. Where two legs of the track come within reach of each other, as at a hairpin, each side past the track’s edge stops where the other leg’s side begins. The geometry is the game’s to keep, stand things on and dispose.

Parameter Type
__namedParameters TrackSurfaceOptions

BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>