Skip to content

trackCameraSettings

const trackCameraSettings: object

Defined in: packages/engine/src/gameplay/camera/trackCamera.ts:9

The chase camera along a track: where the eye stands and what it looks at, from the old sled’s follow camera.

Name Type Default value Description
aimHeight number 1.5 Metres above the track it looks at: a rider’s head, which leaves the sky in frame.
aimResponse number 14 -
behind number 6.8 Metres back along the track the eye stands.
eyeResponse number 9 How fast, in 1/s, the eye eases to where it should stand. The aim eases faster, so the rider stays framed while the eye trails.
height number 3.5 Metres above the track the eye stands.
lookAhead number 4 Metres ahead down the track the eye looks.
snapDistance number 10 Metres the eye may trail by before it cuts rather than eases: a sled at 40 m/s trails by about 4.