Skip to content

Ballgame Branch


The Ballgame branch demonstrates,

  • Server-Side Cannonjs Physics,
  • Physics Friction and Restitution,
  • Tweening mesh positions and quaternions based on server side physics body properties,
  • Multiplayer Support using SocketIO,
  • Mobile and Desktop Responsive UI,
  • Custom Camera controller which acts as an Orbit Controls and Follow Cam
  • Reflector Object
  • THREE.CubeCamera
  • Basic Game Engine with a clock, game phases and scoreboard.

To load the ballgame example, checkout the ballgame branch.

git clone

cd Three.js-TypeScript-Boilerplate

git checkout ballgame

npm install

npm run dev