Skip to main content

CutsceneCameraSchema

@zylem/game-lib


@zylem/game-lib / cinematics / CutsceneCameraSchema

Variable: CutsceneCameraSchema

const CutsceneCameraSchema: TObject<\{ damping: TNumber; dollyEasing: TUnion<[TLiteral<"linear">, TLiteral<"easeIn">, TLiteral<"easeOut">, TLiteral<"easeInOut">]>; dollyId: TOptional<TString>; fov: TNumber; id: TString; keyframes: TArray<TObject<\{ easing: TUnion<[TLiteral<"linear">, TLiteral<"easeIn">, TLiteral<"easeOut">, TLiteral<"easeInOut">]>; fov: TOptional<TNumber>; id: TString; lookAt: TOptional<TObject<\{ x: TNumber; y: TNumber; z: TNumber; \}>>; position: TOptional<TObject<\{ x: TNumber; y: TNumber; z: TNumber; \}>>; time: TNumber; \}>>; kind: TUnion<[TLiteral<"static">, TLiteral<"dolly">, TLiteral<"follow">]>; name: TString; offset: TOptional<TObject<\{ x: TNumber; y: TNumber; z: TNumber; \}>>; pose: TObject<\{ lookAt: TObject<\{ x: TNumber; y: TNumber; z: TNumber; \}>; position: TObject<\{ x: TNumber; y: TNumber; z: TNumber; \}>; \}>; target: TOptional<TString>; \}>

Defined in: packages/game-lib/src/lib/cinematics/cutscene-definition.ts:90

@zylem/game-lib/cinematics public API.

In-game cutscenes authored in Creator's Director mode: a timeline of scenes, cameras (static, dolly, follow) placed as shots with keyframes and blends, plus event and audio tracks. createCutscenePlayer drives a live stage's camera through the camera pipeline and fires the gameplay hooks.