Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I go about implementing fluid dynamics in a game, such as can be seen in this video?

share|improve this question
Have you tried googling "2d Fluid Simulation"? – iamcreasy Nov 12 '11 at 0:55
A search term that may be useful to you is "smoothed particle hydrodynamics". Update: here is a very good introduction to the field. – DaleyPaley Apr 16 '13 at 5:36
up vote 18 down vote accepted

It looks like the game is just using a fairly simple particle fluid simulation. Basically, the "water" consists of little balls that move according to Newtonian mechanics, fall under gravity and repel each other over short distances. The blobs of water are then drawn around the particles using something like metaballs to smooth the surface.

share|improve this answer
Actually a good, clean answer to an otherwise overly-broad question – bobobobo Jan 28 '12 at 14:57

Looks very similar to the water in PixelJunk shooter. There is a PDF on how the water was done: ^^link has gone dead... you can get the cached version from google search, but if you're very very lazy, then you may view this copy if you need to:

share|improve this answer
The link goes to a dead-end. – Todd Lehman Jan 29 '12 at 14:56

Try to read great serious of articles from Intel about fluid simulation for video games

And also try this, fluid simulation in Alice game

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.