Skip to main content

easeValue

@zylem/game-lib


@zylem/game-lib / cinematics / easeValue

Function: easeValue()

easeValue(easing, t): number

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

Pure evaluation of a cutscene at a point in time: which scene and shot are active, where each camera is, and the blended pose the picture should show. Nothing here touches Three.js cameras or the stage, so the same code drives the runtime player, the editor's scrubbing, and the unit specs.

Parameters​

easing​

"linear" | "easeInOut" | "easeIn" | "easeOut"

t​

number

Returns​

number