[ODE] Preventing contacts between connected bodies

Brett Hemes hemes001 at gmail.com
Wed Nov 14 11:16:48 MST 2007


Looking through the sample code I have noticed the following code in  
the nearCallbacks:

dBodyID b1 = dGeomGetBody(o1);
dBodyID b2 = dGeomGetBody(o2);
if (b1 && b2 && dAreConnected(b1, b2))
	return;

and

dBodyID b1 = dGeomGetBody(o1);
dBodyID b2 = dGeomGetBody(o2);
if (b1 && b2 && dAreConnectedExcluding (b1,b2,dJointTypeContact))
	return;

The benefit of the second is not completely clear to me.

Also would it help to have a line:

if(b1 == b2) return;

for composite objects?

Thanks,
Brett




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ode.org/pipermail/ode/attachments/20071114/276365b2/attachment.htm


More information about the ODE mailing list