Function stepScene
-
Parameters
- engine: EngineContext
A null engine from createNullEngine.
- scene: SceneContext
A scene created with
createSceneContext(engine, { defaultRenderTask: false }). - deltaMs: number
The fixed timestep for this step, in milliseconds (e.g.
1000 / 60).
Returns void
- engine: EngineContext
Advance one fixed simulation step of a headless scene created against a createNullEngine engine. This is the server-side replacement for the
requestAnimationFrameloop thatstartEngineruns in the browser.It sets the frame delta and runs the scene's per-frame update, which fires all
onBeforeRender(scene, …)callbacks (physics step, animation evaluation, user logic). It does not record or submit any GPU work.