CameraClip beta
Interface of @v12-engine/client
export interface CameraClip extends ClipA clip of the camera lane (cinematic plan B2), over its keys while it lasts: the camera kept on a unit or a group (follow: a name, or names; with how it follows, as cut.follow takes it), held by hand (handheld: how far it wanders, at speed), or shaken at its start (shake: how hard). While a follow lasts, the keys do not move the camera; after it, they do again
Members
deadzone
deadzone?: number;A ring in units of the ground where the unit moves without the camera moving; none when left out
distance
distance?: number;How far the camera stands from what it follows
fit
fit?: boolean | number;The group kept whole in the picture: true, or the units of ground round them
follow
follow?: string | string[];The unit or units (by name) the camera is kept on while the clip lasts
fov
fov?: number;The lens in degrees from top to bottom
handheld
handheld?: number;How far the hand-held camera wanders, in units of the ground; none when left out
keep
keep?: 'yaw' | 'free';Which way the camera faces: as the follow says (yaw), or swung round behind the unit as it goes (free)
lag
lag?: number;How slowly the camera catches up, 0 (at once) to 1 (slowly); 0.5 when left out
lead
lead?: number;Seconds ahead along the way the unit goes that the camera aims at; none when left out
offset
offset?: Vec2;Where the camera aims from the unit, on the ground
pitch
pitch?: number;The angle between the view and the ground in radians
shake
shake?: number;How hard the camera is shaken at the clip's start
speed
speed?: number;How quickly the hand-held camera wanders; 1 when left out
yaw
yaw?: number;The heading in radians