# @ferret/physics-havok: API

The loader for Havok's WASM, in a package of its own so a game without rigid bodies does not carry it.

2 exports. Generated from the source (`packages/physics-havok/src`), so it matches the code.

## Functions

### havokKernel

*function* · `packages/physics-havok/src/index.ts:20`

```ts
async function havokKernel(o: HavokKernelOptions = {}): Promise<HavokKernel>
```

A HavokKernel on the loaded module, ready for `new PhysicsHost({ kernel })`.

### loadHavok

*function* · `packages/physics-havok/src/index.ts:11`

```ts
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.

