[ODE] Particle simulation

Bram Stolk bram at sara.nl
Mon Feb 26 03:25:14 MST 2007

Ignacio García Fernández wrote:
> Hi!
> Do anybody have any experience on simulating particles (punctual masses) 
> within an ODE simulation?

I think you would just create a body without associating geometries
with it.

Your particles will not collide with your world though.

You would need to write custom collision detection by intersecting
a line-segment with the world. The line-segment would have endpts
p0 and p1 which is the particle pos at t0 and t1.
If the segment intersects the world, you need to do collision
response by creating contact joints.

Come to think of it... such a particle program would make a
nice addition to the demo collection in ode. E.g. simulate
a water-hose that topples some stacked objects by spraying
particles onto them.


> Thank you!
> Ignacio

More information about the ODE mailing list