buoyancy
Another piece of code stuck in a drawer. Originally it was meant to be an exercise in collision detection between falling particles.
Fake physics, shudder. To make the interactions interesting the particles need to move at different speeds, otherwise they would just get stuck together. But the movement never felt right. Fooling around, I reversed the vertical motion and somehow it works… I’d like to claim it was a conscious decision, but it wasn’t.
It’s amazing how the collisions suggest rotation. Try to follow a small bubble when it hits a larger one, can you see the larger bubble rotating? The interactions involved are deceptively simple, the bubbles move slightly apart when overlapping. Nothing else. Actually, the hardest part was finding a name (and spelling it): buoyancy (click here for a version without OpenGL). Moving the mouse pops the bubbles.
This entry was posted
on Thursday, March 6th, 2008 at 22:56 and is filed under Blog, Portfolio, Processing and tagged with buoyancy, particles, Processing.
You can follow any responses to this entry through the RSS 2.0 feed.