Skip to content

FollowOptions beta ​

Interface of @v12-engine/client

ts
export interface FollowOptions extends Omit<CameraKey, 'at' | 'lookAt'>

How the camera follows (cut.follow): the shot's fields it keeps (distance, pitch, yaw, the lens...) and how it moves (see the top of following.ts)

Members ​

deadzone ​

ts
deadzone?: number;

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

fit ​

ts
fit?: boolean | {
        padding?: number;
    };

A group kept whole in the picture: the camera as far as it takes, with padding units round them (4 when left out)

keep ​

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

Which way the camera faces: as the follow says, or as it is (yaw, when left out); or it swings round behind the unit as it goes (free), facing the way it goes

lag ​

ts
lag?: number;

How slowly it 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: 0 (none) when left out

offset ​

ts
offset?: Vec2;

Where the camera aims from the unit, on the ground

snap ​

ts
snap?: boolean;

Put at once where it is to be, the first frame (a seek into a follow, as the editor scrubs)