Taos API Reference
    Preparing search index...

    Interface PhysicsInitOptions

    Options for locating the Jolt .wasm when initializing physics. Omit entirely when building with Vite — the default path uses Vite's ?url asset handling to emit, hash, and fetch the .wasm automatically. Supply one of these only for non-Vite bundlers (webpack/rollup/esbuild/…) or to self-host the file (CDN, custom public path), since the ?url import is a Vite-ism other bundlers don't understand.

    interface PhysicsInitOptions {
        wasmUrl?: string;
        wasmBinary?: ArrayBuffer;
    }
    Index

    Properties

    wasmUrl?: string

    URL the Jolt .wasm is served from — e.g. copy node_modules/jolt-physics/dist/jolt-physics.wasm.wasm into your public dir and pass '/assets/jolt-physics.wasm'.

    wasmBinary?: ArrayBuffer

    The Jolt .wasm bytes, if you'd rather fetch them yourself. Takes precedence over wasmUrl; avoids any bundler asset handling entirely.