Natural physics simulations and canvas hackery
summary
Live coding builds a tiny physics engine that actually runs at ~60fps using an explicit requestAnimationFrame loop, immutable particle maps and ES6 destructuring for state updates. It shows gravity as mass×acceleration, collision bounce, cloth-like chains and a flame particle system, scaling from single sprites to hundreds of particles (masses from ~5 to 5,000) with acceptable performance in browsers. GPU postprocessing via WebGL shaders adds effects, and the demos run and interact as described.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:10Particle Function
- 7:14World Friction
- 12:36Random Acceleration
- 13:04Recap
- 19:31Physics Updates
- 26:56Collision Detection
- 38:20Simulated Wind








