[ODE] Holding bodies like in HL2

Christoph Beyer boernerb at web.de
Tue Sep 12 05:42:56 MST 2006

I looked at your code and i thin the bug is this:

you wrote

> I don't do any collision detection with ray

but in void Core::NearCallback (dGeomID o1, dGeomID o2)
is only checked if o1 is a ray, but if o2 is the ray,
then the ray is always colliding with the capsule of the player.

try this:

if (dGeomGetClass (o1) == dRayClass ||dGeomGetClass (o2) == dRayClass)



More information about the ODE mailing list