[ODE] How to perform efficient ray-space collision detection?

Patrick McColgan patrick at torcinteractive.com
Mon Apr 10 01:43:15 MST 2006


 From the docs:

dSpaceCollide2() determines which geoms from one space may potentially 
intersect with geoms from
another space, and calls a callback function with each candidate pair.* 
It can also test a single nonspace
geom against a space*.

Have a look at that, off the top of my head you may have to use 
"reinterpret_cast<dGeomID>(mdSpaceID)" on the space id.

Maciej Sawitus wrote:
> Hi everyone,
>
> How would you implement ray-space collision detection?
> I expected there would be
> dCollide(dSpaceID, dGeomID, ...) method
> but there's not.
>
>
>   



More information about the ODE mailing list