Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

loadRapier

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

Loads the wasm once, on the first call, 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 <World> waits for it before its ground spawns, and the scene starts it at the first body a world declares, so a game that declares none, alone or in a room, never downloads the wasm; a test awaits it in beforeAll.

Promise<__module>