[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) == 
dBoxClass)
            cout << "ray collides box\n";


        return;
    }

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.


More information about the ODE mailing list