The CannonDebugger class I got here: https://github.com/pmndrs/cannon-es/issues/152#issuecomment-1202788163
- Sandbox: https://codesandbox.io/s/cannon-es-box-sphere-debugger-webgl-ts-9co3qr (toggle the preview to see the result: Ctrl+Shift+D)
- GitHub: https://github.com/8Observer8/cannon-es-box-sphere-debugger-webgl-ts
Instruction:
- Install globally: `npm i -g typescipt parcel browserify uglify-js http-server`
- Install locally: `npm i`
- Run parcel for debug mode: `npm run dev`
- Run http-server without caching: `http-server -c-1`
- Go to browser and type: `localhost:8080`
- Run this command to make the release bundle: `npm run release`