Posts that don't fit into other categories.
Posts: 26
Joined: Mon Apr 17, 2017 10:46 am


Postby assofohdz » Tue May 02, 2017 9:57 am


Is there any way to do liquids with Dyn4j ? If not, is there any plans to implement it ?

Kind regards,

Site Admin
Posts: 378
Joined: Sat Feb 06, 2010 10:23 pm

Re: Liquids

Postby William » Tue May 02, 2017 6:28 pm

There's nothing in dyn4j for fluids right now.

You could achieve something pretty simple by implementing buoyancy across a line, but this wouldn't work if you needed fluids that flow (like SPH).

Historically speaking, I've been down this path a few times and it always ended in something that I just didn't feel comfortable supporting. Simulations would be stable only under very specific conditions and settings. In addition to this, using a time step any smaller than 60 hz just wasn't enough to keep the simulation accurate. Most users, if not all, want to run 60 or below (I was able to get a decent simulation at 120 hz).

That said, there's plenty of papers and libraries out there that give good results, but beware, the devil is in the details. I may pick this back up one day. It's been a while since I looked at it last, so maybe there's some better solutions now, but I'm not planning on it unless there's a pretty high demand for it from users.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest