Skip to content

RailOptions beta ​

Interface of @v12-engine/client

ts
export interface RailOptions

How a camera runs along a path of the map (cut.rail): from from to to of its length (0 its start, 1 its end; 0 and 1 when left out) in seconds (4 when left out), along ease (steady when left out); at the distance, the pitch, the lens, the roll and the height given, or as the camera has them; facing the way the path goes (along, when left out) or a yaw; straight from point to point of the path, or with its bends rounded (smooth: as wide as its legs allow when true, within so many units of each point when a number)

Members ​

distance ​

ts
distance?: number;

The camera's distance from the point looked at; the camera's own when left out

ease ​

ts
ease?: Ease | string;

The curve along the path; steady when left out

fov ​

ts
fov?: number;

The lens in degrees from top to bottom; the camera's own when left out

from ​

ts
from?: number;

Where on the path's length it starts, 0 its start to 1 its end; 0 when left out

height ​

ts
height?: number;

How far above the ground the point looked at is; the camera's own when left out

pitch ​

ts
pitch?: number;

The angle between the view and the ground in radians; the camera's own when left out

roll ​

ts
roll?: number;

The horizon's tilt in radians; the camera's own when left out

seconds ​

ts
seconds?: number;

Seconds the run takes; 4 when left out

smooth ​

ts
smooth?: boolean | number;

Rounds the path's bends: true as wide as the legs allow, a number within so many units of each point; straight when left out

to ​

ts
to?: number;

Where on the path's length it ends, 0 to 1; 1 when left out

yaw ​

ts
yaw?: number | 'along';

The heading in radians, or 'along' to face the way the path goes, which is the way when left out