Skip to content

cameraPoseAt beta ​

Function of @v12-engine/client

ts
export declare function cameraPoseAt(items: readonly LaneItem[], at: number, view: (name: string) => CameraShot | undefined, options?: {
    eases?: EaseRegistry;
    path?: (name: string) => readonly Vec2[] | undefined;
}): CameraShot | undefined;

Where the camera is at a moment of a camera lane: between the keys around it, along the line and the curve the key being reached names (path, ease; straight when it names none); held at a key that holds; along a path of the map after a rail key; at the first before it, the last after. Keys whose view the map has not, or whose rail it has not, are passed over. eases are the curves a key may name (the client's own when left out); path finds a path of the map by its name