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
ERP Software To Simplify Your Manufacturing Icon
ERP Software To Simplify Your Manufacturing

From quote to cash and with AI in mind, our ERP software will become the most valuable asset at your company.

Global Shop Solutions AI-integrated ERP software provides the applications needed to deliver a quality part on time, every time from quote to cash and everything in between, including shop management, scheduling, inventory, accounting, quality control, CRM and 25 more.
Learn More
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