Skip to content

@modoki/engine / index / StepOptions

Interface: StepOptions ​

Time & Determinism ​

dt? ​

optional dt?: number

Seconds per tick (default 1/60).


restore? ​

optional restore?: boolean

Restore the real clock + prior play-state when done (default true). Pass false to chain multiple stepSimulation calls while staying on the manual clock (e.g. dispatch an intent between batches).

Built with Modoki.