Show HN: A 145-line 2D rigid-body physics engine in TypeScript and Canvas demo
Category: library
Tags: physics-engine, 2d-graphics, canvas, typescript, educational, game-dev
Score: 4.3/10 (Innovation: 3, Technical: 4, Documentation: 6, Utility: 4)
A minimal 2D rigid-body physics engine in TypeScript (~120 lines) with circle-circle collision, impulse resolution, and wall bounce, wrapped in a slingshot demo and compared against Matter.js. It's a teaching-oriented educational project tied to a Medium article and starter kit sales, not a production engine.
Target audience: frontend devs, game dev learners, students learning physics simulation
Repository: https://m2-md.github.io/canvas-physics-from-scratch/ · TypeScript · MIT
View on Hacker News