Taos API Reference
    Preparing search index...

    Function initializePhysics

    • Loads the Jolt physics backend (the WASM module) on demand. Call once before using physics, or simply await PhysicsWorld.create() which loads it for you. Idempotent — safe to call repeatedly / concurrently.

      Building with Vite needs no arguments. For other bundlers (or to self-host the .wasm), pass PhysicsInitOptions — and make this call (or the first PhysicsWorld.create()) happen with those options before any other physics use.

      Parameters

      Returns Promise<void>