Coffee-Physics
A simple, lightweight physics engine written in CoffeeScript
Coffee-Physics is a minimalist physics engine written in CoffeeScript that favors approachable, creative-coding workflows over heavyweight simulation frameworks. It models motion with a particle system and uses simple constraints and behaviors—such as gravity, attraction/repulsion, drag, and springs—to create believable movement with very little code. The design is intentionally composable: you attach behaviors to particles or groups and let the update loop integrate positions, producing emergent effects from a few rules. Because it is lightweight, it integrates easily with 2D renderers like Canvas or WebGL, and it is popular in generative art sketches and interactive experiments. The codebase emphasizes readability and hackability so learners can modify the solver, add new behaviors, or swap integrators without wading through engine internals. It’s ideal when you want expressive motion and playful dynamics rather than full rigid-body simulation.