Blog

Particles

Particle simulation in Actionscript. Up to 10 particles in a simulated "container". Occasionally explodes if particles get too close (due to dividing by zero or almost zero) - common with higher number.

With one particle interacting with the container the path is regular and uniform. But add one more particle and things get crazy and chaotic. Essentially it's the three-body problem, with the container (a bowl, described by an equation something like z=kd6 where d is the distance from the origin) as the third "body".

[Update: Using SWFObject to embed Flash now. Fingers crossed.]

Shortcut URL

Comments

Cute! I had to view the source and cut-n-paste the URL to see it in Safari, just so you know… something’s up with the Painful Layering Of Object And Embed, I guess.

Posted by Egypt Urnash on 1 May 2007 at 12:12 AM

So THAT’S what particles are up to when I can’t see them! I do enjoy the green explosion when the atoms occasionally smash.

Very cool!

Posted by Muffy St. Bernard on 1 May 2007 at 4:00 PM

It might be my ad-blocking stuff, though it didn’t look like it when I looked at the source. At least today your site served its CSS up for me!

Posted by Egypt Urnash on 1 May 2007 at 4:55 PM

Commenting is not available in this weblog entry.