[ODE] Collisions, I dont need them sometimes..

Francisco Jesús Martínez Serrano franjesus at medtelecom.net
Sat May 3 09:17:02 2003


El Sábado, 3 de Mayo de 2003 09:24, Anders Olofsson escribió:
> I've got something like this:
>
> sphere <-Hinge2-> boxB <-Hinge-> boxA
>
> I dont want any collisions to occur between any of  those bodys. So I have
> this in the nearCallback():
>
> if (b1 && b2 && dAreConnected (b1,b2)) return; //Straight from the
> examples.
>
> But since the sphere isn't directly connected to boxA, there will be
> collisions in that case, right?
> Do I have to manually detect that?, or should dAreConnected(sphere, boxA)
> return true?

Maybe the category/collide bits of each geom could solve your problem.

http://opende.sourceforge.net/ode-latest-userguide.html#ref67

BTW, does this mechanism work with collision between spaces?