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

Rigid body emitter #87

Closed kayarre closed 2 years ago

kayarre commented 4 years ago

Is there a way to employ a rigid body emitter similar to that for SPlisHSPlasH, except the rigid bodies are geometries instead of spheres. An example would be emulate pouring a pitcher full of duckies into a box.

Where would be a god place to put this or add this feature?

janbender commented 4 years ago

A simple way would be to generate all bodies at the beginning. But activate the emitted bodies only at their individual emit time. The emitter step should then be performed before or after a time step.