Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

buildTrackSurface

buildTrackSurface(trackSurfaceOptions): BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>

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, at its height. The geometry is the game’s to keep, stand things on and dispose.

Parameter Type
trackSurfaceOptions TrackSurfaceOptions

BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>