@ferret/physics-havok
The loader for Havok's WASM, in a package of its own so a game without rigid bodies does not carry it.
Read the guide: how to use it →
Functions
havokKernel function
async function havokKernel(o: HavokKernelOptions = {}): Promise<HavokKernel>A HavokKernel on the loaded module, ready for new PhysicsHost({ kernel }).
packages/physics-havok/src/index.ts:20
loadHavok function
function loadHavok(o: { wasmUrl?: string } = {}): Promise<HavokPhysicsWithBindings>Havok's WASM for a game in a page: from havok/ under the library folder (globalThis.FERRET_LIB, or lib/ferret/; the OS Beroun page sets it to /lib/ferret/), loaded once. A package of its own, so a game without rigid bodies does not carry the loader.
packages/physics-havok/src/index.ts:11