evaluateCutscene
@zylem/game-lib / cinematics / evaluateCutscene
Function: evaluateCutscene()
evaluateCutscene(
definition,time,lookup?):CutsceneFrame
Defined in: packages/game-lib/src/lib/cinematics/cutscene-math.ts:226
Everything the picture needs at time: the active scene and shot, and the
camera pose after blending from the previous shot when the shot asks for
it. Without an active shot the pose is undefined and the gameplay camera
keeps control.
Parameters
definition
cameras
object[] = ...
dollies
object[] = ...
duration
number = ...
Seconds.
id
string = ...
name
string = ...
scenes
object[] = ...
skippable
boolean = ...
stage
string | null = ...
Stage the cutscene was authored against; informational.
tracks
(\{ id: string; items: object[]; kind: "camera"; name: string; \} | \{ id: string; items: object[]; kind: "event"; name: string; \} | \{ id: string; items: object[]; kind: "audio"; name: string; \})[] = ...
time
number