Can JME handle fluids?

What kind of physics can JME do?

I know that JME have good quality built in classes for vehicles, collision, friction and other types of mechanical things. But can JME also handle fluids?

Like this

Can it? Yes. Does it have anything built in? No. You would have to write that yourself.

There are a lot of references all over the internet regarding “liquid simulation”, but here are a few that piqued my interest in particular when I scanned over the subject.

http://google.github.io/liquidfun/

It also depends on the context. In most cases you’d want to simulate the fluid using whatever simulator and then display the results afterwards in jme. So those two things are decoupled.

If you want to fake liquid simulation in real time (like simple water, 2d simulationish games), then it’s more of a jme task, but a completely different approach

1 Like