@threecyborgs/wasm-box3d
v0.1.2
Published
WebAssembly build and JavaScript loader for Box3D.
Maintainers
Readme
@threecyborgs/wasm-box3d
WebAssembly build and JavaScript loader for Box3D.
npm install @threecyborgs/wasm-box3dimport { createBox3DDemo } from '@threecyborgs/wasm-box3d';
const physics = await createBox3DDemo();
physics.step(1 / 60, 4);
console.log(physics.getBodyCount(), physics.getBodyData());Stress scenes are available through resetStress(dynamicBlockCount). The call
rebuilds the world with the requested number of dynamic boxes, capped by
getMaxBodies(), and getStressDynamicCount() reports how many stress boxes
were actually created.
