[ODE] dSpaceCollide2 for dGeomID and dSpaceID

Roel van Dijk roelvandijk at home.nl
Sun Feb 1 16:34:13 MST 2004


On Tuesday 03 February 2004 15:38, Tibor Szabo wrote:
> Hi,
> i'd like to use dSpaceCollide2 function for ray (dGeomID) and space
> (dSpaceID). But the function only accepts dGeomID, dGeomID pair. Is it
> possible to get dGeomID for a given dSpaceID?
A space _is_ a geom. So you can use dGeomGetClass to get the geoms class 
number and if it is dSimpleSpaceClass or dHashSpaceClass you can cast it to a 
dSpaceID.

But dSpaceCollide2 collides spaces not geoms. You could give it the space that 
contains the ray and the other space. You can get the rays space with 
dGeomGetSpace.


More information about the ODE mailing list