PDA

View Full Version : exponential particle decay


scatterbrain
03-07-2007, 10:46 PM
I'm working on an animation that illustrates the concept of half-life (not the video game). I already have the equation that correctly simulates exponential decay. The idea is to start out with 1,024 particles spread out randomly in a square area (about 320 x 320 pixels) and have them disappear at the correct rate, following the attached equation.

Ideally, the particles would be generated at random at the beginning and stay in the same spot throughout the animation.

Does anyone know how to translate this into ActionScript? I'd figure it out but I'm on a tight timeline (isn't everyone?). Thank you very much...

John Petersen
petersen1973@gmail.com