Skip to content

@modoki/engine / index / getSimDelta

Function: getSimDelta()

getSimDelta(world): number

Gameplay delta for this frame: rawClampedDelta × timeScale (the Time.delta field). 0 when the sim isn't running (editor Stopped/Paused) so render-phase callers freeze. Use for movement, timers, physics — anything that must be deterministic/reproducible.

Parameters

world

World

Returns

number

Built with Modoki.