aimAlongTrack
aimAlongTrack(
track,distance,rider,eye,aim):void
Defined in: packages/engine/src/gameplay/camera/trackCamera.ts:44
Where a camera chasing rider, drawn distance along track, stands
and looks: on the track behind and above it, and at the track ahead,
both carried across with the rider. Written into eye and aim.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
track |
Track |
distance |
number |
rider |
Vector3 |
eye |
Vector3 |
aim |
Vector3 |
Returns
Section titled “Returns”void