Hi,
I’m new to Ode & OdeJava (Hi Level API), and I notice that the collisions between 2 jointed bodies are not reported.
I have a very simple wordl with two boxes connected by an edge with a hinge joint, and when rotating around this joint, the boxes interpenetrate. If I remove the joint, though, they do not.
I recompiled all the OdeJava library, and noticed the following code in the nearCallback function of odejava.cpp:
// ignore if the two bodies are connected by a joint
if (b1 && b2 && dAreConnectedExcluding (b1,b2,dJointTypeContact)) return;
This test will prevent collision between jointed bodies to be reported. If I comment it out, my boxes behave OK.
Am I doing something wrong, or should the test rather ignore the collision if the bodies do not have any contatct joints ?
Thanks,
-Alex