Drawing Box and Sphere Cannon-ES Colliders with WebGL and TypeScript - GameDev.net .

TypeScript Coding



Published August 05, 2022

The CannonDebugger class I got here: https://github.com/pmndrs/cannon-es/issues/152#issuecomment-1202788163


  • 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`