Skip to content

loadRapier

const loadRapier: () => Promise<__module> = rapier.load

Defined in: packages/engine/src/gameplay/physics/rapier.ts:33

Loads the wasm once, and the scatter shapes table with it, so whatever awaits this before a step never walks her through a tree the ground has not baked yet. Every later call answers the same promise. A game awaits it before its first step, and a test in beforeAll.

Promise<__module>