Rendering

Cameras and shots

14 symbols, imported from @driftengine/core.

Explained in Cameras and cinematics.

Classes

CinematicPlayer
Plays a CinematicScript: a clock, the shot it is currently in, and the line that is currently up.

Interfaces

CameraKeyframe
One camera placement inside a shot. Times are from the shot's own start.
CameraPath
CameraPathKey
CameraPathOptions
CameraPathSample
CinematicLine
CinematicScript
CinematicShot
A cut, at atSec.

Functions

createCameraPath
Check the keys and work out every tangent once. Throws at construction, never in a frame.
createCameraPathSample
defineCinematic
Validate a script and hand it back, so a data module fails on import:
sampleCameraPath
The camera at timeSec. An open path holds its ends; a looped one wraps.
validateCinematic
Throws on the first thing wrong, naming the entry and both times.