previousShot
@zylem/game-lib / cinematics / previousShot
Function: previousShot()
previousShot(
definition,shot): \{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:85
The shot that ended most recently before shot began, on any camera track.
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; \})[] = ...
shot
blend
\{ duration: number; easing: "linear" | "easeInOut" | "easeIn" | "easeOut"; \} = ShotBlendSchema
blend.duration
number = ...
Seconds spent blending from the previous shot's camera; 0 is a hard cut.
blend.easing
"linear" | "easeInOut" | "easeIn" | "easeOut" = CutsceneEasingSchema
cameraId
string = ...
end
number = ...
id
string = ...
start
number = ...
Returns
\{ blend: \{ duration: number; easing: "linear" | "easeInOut" | "easeIn" | "easeOut"; \}; cameraId: string; end: number; id: string; start: number; \} | undefined