I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it’s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to show you how it’s done.
I quickly looked at some reviews to make my choice on the physics engine i would use and APE seemed to be the simplest one. It was pretty simple indeed as i was able to put up my original demo in a single day. It was a little tricky to create the physics bottle that would hold the particles. The easiest way i found was to put movieclips on stage in the shape of the bottle and loop through each pieces and create a corresponding APE RectangleParticule. The tricky part is that when you rotate a movieclip in flash, the height and width of the clip changes, so i had to nest a movieclip within to be able to read the correct height and width of the particle. Download the source
Tags: Actionscript, Flash, Fluid, Liquid, Physics, TBWA\Chiat\Day Los Angeles

That’s pretty damn cool patrick. RealFlow, for Flash.
Hey dude, you get to do the first comment ever on my new blog
Patrick, very very cool!
Did I win a Manhattan on the rocks? YES!
Nice!
Excellent ! nostalgie de la prog … beau résultat… en ligne bientôt?
C’est pas en ligne, c’etait trop cartoon, on a du faire autre chose, tu peux voir le preloader final sur http://www.gatorade.com.
Pretty cool and smart project. congratulations
Wonderful, so nice.
[...] But yesterday (I thought would be another endless search for the answer) I found the final and just so simple solution. The only problem was that it was build with APE, but with the source provided it wasn’t that [...]
This is absolutely amazing. Congratulations on the great work.
Holy Moly!
this is genious!
I would have never thought it was so simple to generate the look of fluids…
have you tested to check if the process is heavy on crappy computers?
nice engine, i’ll try to pimp my ride
Appreciate for the lovely information.:)
This is just perfect!.. Simple and functional.
WOW…. guy… the simplest but perfect idea… wow… just… wow… this is so complete… wonderful idea…
AMAZING! NICE
[...] Acceder al Tutorial Ejemplo: Simulando un fluido con ActionSript Physics Engine – ENG [...]