[ODE] Ray question
LR
logreg at free.fr
Thu Jun 8 03:05:46 MST 2006
Hi,
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
(no ?)
Question:
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
meters.
Laurent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20060608/79fbd713/attachment-0001.htm
More information about the ODE
mailing list