Clinton Montague

Developer, learner of things, functional programming enthusiast, hacker, and all round inquisitor.

Lunch-time hack: Day 2 – self organising particles

June 8, 2011

In today’s hack I wanted to play with a self organising particle system, so I set about writing a loop which worked out the distance between each particle and generated a force based on that. It was a lot to think about so I didn’t quite get it working in 15 minutes and decided to be naughty and finish it off this evening.

One of the best things about it is that it’s a truly chaotic system – the rules are 100% known, but you can’t be sure exactly what will happen when you add a new particle.

Have a play, go on, it’s really cool!

See demo →

See demo →