[ODE] Holding bodies like in HL2

michael kapelko kornerr at gmail.com
Wed Sep 13 06:03:37 MST 2006

Well, I do:
if (dGeomGetClass (o1) == dRayClass || dGeomGetClass (o2) == dRayClass) {
        if (dGeomGetClass (o2) == dBoxClass || dGeomGetClass (o1) == 
            cout << "ray collides box\n";


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?

More information about the ODE mailing list