Skip to content

JohannesKantz/ChaoticBalls

Repository files navigation

Chaotic Balls

Inspired by this Numberphile video, this is a simple system that demonstrates chaos theory.

Two balls start at almost exactly the same point, but their trajectories rapidly diverge after only a few bounces.

Live Preview

click here for live preview

Screenshots

Bouncing Balls Image Bouncing Balls Image

In case you want to try it

Install dependencies

$ pnpm install

Run

$ pnpm serve

Development

$ pnpm dev

Implementation

I used some kind of Verlet integration to calculate the physics of the ball. Not very accurate, but enough for this a simple visualization.