[ODE] Ray question
logreg at free.fr
Thu Jun 8 03:05:46 MST 2006
I'm using ray to simulate a distance sensor, the ray is from 0 to 5 meters.
To determine what is the nearest object, i look in the nearcallback what is
the current detected object, if the distace is less than the last computed
the the "really" near object is the new one ... i think it's the good way
when i find a contact (in the near callback) at (for exemple) 2 meters from
the ray position, is it a good optimisation to change the length of the ray
(using dRaySetLength) to down it to 2 meters ? To avoid detection after 2
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ODE