Skip to main content

shotAt

@zylem/game-lib


@zylem/game-lib / cinematics / shotAt

Function: shotAt()

shotAt(shots, 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:63

The shot covering time on one track, if any (last one wins on overlaps).

Parameters​

shots​

readonly object[]

time​

number

Returns​

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