Skip to main content

createSimulation

@zylem/game-lib


@zylem/game-lib / runtime / createSimulation

Function: createSimulation()

createSimulation(options?): Promise<Simulation>

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/core.d.ts:328

Load and instantiate the @zylem/runtime wasm module and wrap it in a Simulation. One call per logical stage/world.

Parameters​

options?​

SimulationOptions

Returns​

Promise<Simulation>