Skip to main content

activeShot

@zylem/game-lib


@zylem/game-lib / cinematics / activeShot

Function: activeShot()

activeShot(definition, time): \{ blend: \{ duration: number; easing: "linear" | "easeInOut" | "easeIn" | "easeOut"; \}; cameraId: string; end: number; id: string; start: number; \} | undefined

Defined in: packages/game-lib/src/lib/cinematics/cutscene-math.ts:75

The active shot across every camera track. Tracks are prioritised in order, so a shot on the first camera track overrides one on the second.

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

Returns​

\{ blend: \{ duration: number; easing: "linear" | "easeInOut" | "easeIn" | "easeOut"; \}; cameraId: string; end: number; id: string; start: number; \} | undefined