[ODE] Holding bodies like in HL2

David Walters hidden.asbestos at googlemail.com
Wed Sep 13 06:26:08 MST 2006

> in NearCallback, and cout never happens. But when I check for capsule,
> it always happens. It only collides with the first body! How to get
> other body? Can you show any code?
> Thanks.

I'm not sure exactly what you mean. The ray collision only reports one
contact for each geom - but it should occur several times for all
geoms along the ray (note that it's in a random order).

You need something outside of near_callback, as that function only
represents one geom-geom pairing.

If you were expecting a box collision and not getting one - then check
your ray is in the right direction, starts from the right place and is
long enough to reach for the contact to happen.


More information about the ODE mailing list