Skip to content

PathKeysOptions beta ​

Interface of @v12-engine/client

ts
export interface PathKeysOptions extends Omit<CameraShot, 'x' | 'z' | 'yaw'>

How a path is made into keys of the camera lane (cameraKeysFromPath): from at for seconds (0 and 4 when left out), from from to to of the path's length (0 its start, 1 its end; from past to runs it backwards), at the pose's distance and pitch (the lens, the roll, the height and the point looked at too, when said), facing the way it goes (along, when left out) or a yaw; its bends rounded as a smooth rail's are (smooth: as wide as the legs allow when true, which it is when left out; within so many units of each point when a number; false for a key at each point, facing between the legs there). ease spreads the keys in time as the run would be eased, slower where it is; steady when left out

Members ​

at ​

ts
at?: number;

The moment the first key is at, in seconds; 0 when left out

ease ​

ts
ease?: Ease;

The curve the keys are spread in time by, slower where it is; steady when left out

from ​

ts
from?: number;

Where on the path's length the run starts, 0 its start to 1 its end; past to runs it backwards

seconds ​

ts
seconds?: number;

Seconds the run takes; 4 when left out

smooth ​

ts
smooth?: boolean | number;

Rounds the bends: true (the default) as wide as the legs allow, a number within so many units of each point, false for a key at each point

to ​

ts
to?: number;

Where on the path's length the run ends, 0 to 1

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