[ODE] colliding ray&sphere (noobie questions..?)

juhani honkala juhnu at all-m.com
Wed May 14 21:39:02 2003


morninks...

I've two questions that are kinda newbie-flavored..
apologizes about that.. ;)


1. I'm  using the ODE collision detection system and trying 
to collide ray and sphere geoms. The callback is called exactly 
as should, but the only problem is that zero contact points are g
enerated by the dCollide() function. If I collide the ray with 
a plane, a one contact point is generated as expected, but that's not 
the case with sphere geoms.. 

any ideas???

2. dSpaceCollide2 takes a dSpaceID as a parameter, how can I 
convert a dGeomID to the dSpaceID, if the geom is space? 





cheers, 


juhani