Cameras and shots · function

createCameraPath

Check the keys and work out every tangent once. Throws at construction, never in a frame.

Explained in Cameras and cinematics.

function createCameraPath(keys: readonly CameraPathKey[], options: CameraPathOptions): CameraPath
import { createCameraPath } from '@driftengine/core';

Parameters

ParameterTypeDescription
keysreadonly CameraPathKey[]
optionsCameraPathOptions