[ODE] detecting when two objects no longer collide?

Martin C. Martin martin at metahuman.org
Tue Dec 10 20:14:02 2002


Have a bool called "my_two_objects_collide."  Every timestep, before you
step the world, set it to false.  In the near callback, if you find they
actually collide, set it to true.

- Martin

> Bill Kraus wrote:
> 
> I apologize if the answer is obvious, but how can I detect when two
> objects no longer collide? At the moment, I flag the point at which the
> number of contact points drops to zero in my callback routine to
> dCollide, although this is not ideal because if the two objects rebound
> fast enough away from one another, dCollide may not be called (and
> therefore I never get that last 'zero contact points' signal).
> 
> Any suggestions?
> 
> - Bill