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.

Features

  • Supports multiple integration methods (e.g. Verlet) for particle motion
  • Force modules: attraction, repulsion, collisions etc.
  • Easily add particles, set their mass, position, radius etc.
  • Rendering via canvas / optionally WebGL / DOM rendering modes for effects
  • Lightweight and designed to be integrated with sketch / drawing frameworks (e.g. Sketch.js)
  • Demo examples and visualizations for spring systems, cloth, chains etc.

Project Samples

Project Activity

See All Activity >

Categories

Physics

License

MIT License

Follow Coffee-Physics

Coffee-Physics Web Site

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Coffee-Physics!

Additional Project Details

Programming Language

CoffeeScript

Related Categories

CoffeeScript Physics Software

Registered

2025-09-24