I'm looking for some algorithms (or some applets/examples with source code) to simulate fluids in a 2D container (which can be moved and rotated).
An example of what I need is a 2D glass with some water inside, like the iBeer application f开发者_如何学JAVAor smart phones.
I think what you are after are "sloshing algorithms", some of them are specifically designed for cross-sections.
精彩评论