Mini 2D Physics is a minimalistic physics engine, designed for codegulf competitions such as js13kgames.
More info on https://xem.github.io/codegolf/mini2Dphysics.html
The code here assumes that you use squares and circles in a 2D world under the influence of gravity. It features collision detection and respects reciprocal forces between objects.
Each frame is drawn after the canvas element got cleared.
If you use this code here, please fill a Pull Request to add your project to this list. I can't wait to see how you used it!
- Combat Scorched Earth from Outer Space
- Fresh Fruit Feeder
- O HIII BAD SKATEPARK
- Your project name and a link to it here
This code is released into the Public Domain.