billiards
Unsophisticated billiards physics.
Demo
In browser WebGL demo
⇦ ⇨ Aim
Control ⇦ ⇨ Fine aim
⇧ ⇩ Topspin and backspin
Shift ⇦ ⇨ Side spin
Space Hit - hold for more power
Diagrams
Inspect physics using diagrams
Setup
nvm use v14.15.1
yarn install
yarn dev
Test
yarn test
yarn coverage
yarn serve
yarn deps
yarn upgrade -L
yarn prettify
Reference
3D graphics uses three.js
Papers on ball mechanics, cushions and max spin simulation 1 2 3
Inline LaTeX editor
Key equations
📃
surface velocity📃
rolling motion📃
sliding motion📃
cushion bounceProgress snapshots
July 2018
July 2019
March 2021