The reason is that I would like to simulate an infra-red sensor, which will return the distance data of the nearest object on its radial way.
The infra-red sensor can be used for avoiding obstacle.
The principle is quite like a GeomRay, which can be used to get the distance between its origin and the contact point with another object.
So I would like to use the ODE.dCollide() for it. In fact, the GeomRay is not quite useful for me, what I want to get is the distance which will be returned by the function.
I hope I have explained clearly. I don't know how to set the parameters for the dCollide() function.
I will be glad to know if there's better method.
