[ODE] How to perform efficient ray-space collision detection?
Maciej Sawitus
msawitus at gmail.com
Mon Apr 10 02:15:19 MST 2006
Hi,
That's very interesting. I've read here and there that a space is treated
as geometry in ODE, but haven't found any information on how to retrieve
geom id from the space id before.
The reinterpret_cast possibility from geom id to space id was not
mentioned anywhere in the docs of ODE, so it looks like a little hack -
assumes that such a cast succeeds.
I'll try that,
Thanks!
Maciej Sawitus
Dnia Mon, 10 Apr 2006 10:43:15 +0200, Patrick McColgan
<patrick at torcinteractive.com> napisał:
> 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.
>>
>>
>>
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list