[ODE] Collide ray class

German Castro Donoso gecastro at gmail.com
Wed Aug 2 18:07:17 MST 2006


Hi,

 I'm using some object of type ray in a simulation, this is a piece of code
that is in the nearCallback function:

         if( dGeomGetClass(in_o1) == dRayClass ){
            float *l_depth = (float *)dGeomGetData(in_o1);
            if(l_contact[i].geom.depth < *l_depth){
               *l_depth = l_contact[i].geom.depth;
            }
         }
         if( dGeomGetClass(in_o2) == dRayClass ){
            float *l_depth = (float *)dGeomGetData(in_o2);
            if(l_contact[i].geom.depth < *l_depth){
               *l_depth = l_contact[i].geom.depth;
            }
         }

i'm sure that i have at least one ray, but never ocurrs that
dGeomGetClass(in_o2) == dRayClass || dGeomGetClass(in_o1) == dRayClass in
the callback function

My ray geoms are created same other geoms, but only rays not collide.

Any idea?

PD: Sorry, my english isn't good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20060802/ea8c3b45/attachment.htm


More information about the ODE mailing list