InteractiveComputerGraphics / PositionBasedDynamics

PositionBasedDynamics is a library for the physically-based simulation of rigid bodies, deformable solids and fluids.
MIT License
1.89k stars 358 forks source link

How could I add obstacles to FluidDemo? #167

Closed MillyaPC closed 1 year ago

MillyaPC commented 1 year ago

Could you give me instructions on adding obstacles (such as rigid bodies) in position based fluid simulation scenes? Thank you!

janbender commented 1 year ago

This demo is just a proof of concept. If you want to do fluid simulations with obstacles and dynamic rigid bodies, take a look at our fluid simulator:

https://splishsplash.physics-simulation.org/

We integrated the PositionBasedDynamics library in this fluid simulator, so you can use the same rigid body system.

MillyaPC commented 1 year ago

Thanks!