Skip to content

CameraClip beta ​

Interface of @v12-engine/client

ts
export interface CameraClip extends Clip

A 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 ​

ts
deadzone?: number;

A ring in units of the ground where the unit moves without the camera moving; none when left out

distance ​

ts
distance?: number;

How far the camera stands from what it follows

fit ​

ts
fit?: boolean | number;

The group kept whole in the picture: true, or the units of ground round them

follow ​

ts
follow?: string | string[];

The unit or units (by name) the camera is kept on while the clip lasts

fov ​

ts
fov?: number;

The lens in degrees from top to bottom

handheld ​

ts
handheld?: number;

How far the hand-held camera wanders, in units of the ground; none when left out

keep ​

ts
keep?: 'yaw' | 'free';

Which way the camera faces: as the follow says (yaw), or swung round behind the unit as it goes (free)

lag ​

ts
lag?: number;

How slowly the camera catches up, 0 (at once) to 1 (slowly); 0.5 when left out

lead ​

ts
lead?: number;

Seconds ahead along the way the unit goes that the camera aims at; none when left out

offset ​

ts
offset?: Vec2;

Where the camera aims from the unit, on the ground

pitch ​

ts
pitch?: number;

The angle between the view and the ground in radians

shake ​

ts
shake?: number;

How hard the camera is shaken at the clip's start

speed ​

ts
speed?: number;

How quickly the hand-held camera wanders; 1 when left out

yaw ​

ts
yaw?: number;

The heading in radians