RailOptions beta
Interface of @v12-engine/client
export interface RailOptionsHow 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
distance?: number;The camera's distance from the point looked at; the camera's own when left out
ease
ease?: Ease | string;The curve along the path; steady when left out
fov
fov?: number;The lens in degrees from top to bottom; the camera's own when left out
from
from?: number;Where on the path's length it starts, 0 its start to 1 its end; 0 when left out
height
height?: number;How far above the ground the point looked at is; the camera's own when left out
pitch
pitch?: number;The angle between the view and the ground in radians; the camera's own when left out
roll
roll?: number;The horizon's tilt in radians; the camera's own when left out
seconds
seconds?: number;Seconds the run takes; 4 when left out
smooth
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
to?: number;Where on the path's length it ends, 0 to 1; 1 when left out
yaw
yaw?: number | 'along';The heading in radians, or 'along' to face the way the path goes, which is the way when left out