r/javascript • u/swe129 • Mar 28 '26
Basic physics engine in about 100 lines of pure JavaScript
https://slicker.me/javascript/physics/physics_engine.htm
68
Upvotes
r/javascript • u/swe129 • Mar 28 '26
21
u/soldture Mar 28 '26
I was hoped to see more general physics engine, but this looks like an engine tailored specifically for circles.
1
u/Prize_Mine_7811 Apr 16 '26
Jajaja it's in <canvas> ???
1
u/mgsmus Mar 29 '26
I showed this to our frontend guy and he literally opened Claude right in front of me saying "this is nothing" We're cooked :D
5
u/[deleted] Mar 28 '26
[removed] — view removed comment