Physics with matter.js in p5.js
Tested with p5.js 2.3.4 and matter.js 0.20.0 (October 2026).
Make a box fall, bounce off a ramp or knock down a tower, and you need a physics engine: code that works out how solid objects move, collid
pedbad.hashnode.dev12 min read