{{sketch.instructions}}

A fork of {{sketch.parentSketch.title}} by {{sketch.parentUser.fullname}}.

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Click record or press 'R'
to start/stop recording (max. 10 secs)

Click capture
to take a screenshot

Robust Elastic Collisions

Accurately modeled elastic collisions. Mass is proportional to r^3. Wall collisions aren't great, but collisions between balls are modeled accurately, including finding the precise time that they collided. They can, however, still clip through each other if they move past each other entirely within one frame. The code style is a mess, though, I apologize for that.
e.g. "mouse, keyboard"
e.g. "visualization, fractal, mouse"
learn more about Creative Commons
  • {{v.title}}

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}