Skip to content

cameraKeysFromPath beta ​

Function of @v12-engine/client

ts
export declare function cameraKeysFromPath(points: readonly Vec2[], options: PathKeysOptions): CameraKey[];

Keys of the camera lane along a path of the map: where a rail of it would take the camera, as keys a designer changes one by one (a key's distance, its lens, where it is, its time, a bend's handles). A key where each straight of the path starts and ends, and where each bend does, a bend a bezier between its two keys (with its handles, as the rail rounds it); timed by the distance along the path, so the camera goes at one speed (or as ease has it). The keys are the lane's as they are: put them in a lane's items, or after another key (the first is reached from the key before it as a key is, along its path and ease, which it leaves to the lane: set them on it)