Hi,
I am quite new to OdeJava and I was starting to deal with collisions. I succeded in managing collision between boxes (although they seem a little buggy) and spheres, but not with capped cylinders, the collision is noticed (I get depth, normal, etc when cylinders intersecate) but no changes occurs in coordinates of the bodies. I don’t I think I am using something in the wrong way, because the same code I use worked well with GeomBox and GeomSphere. For managing the collision I use the following code:
for (int i = 0; i < collision.getContactCount(); i++) {
contact.setIndex(i);
contact.getPosition(pos);
contact.getNormal(normal);
contact.setMode(Ode.dContactBounce | Ode.dContactApprox1);
contact.setBounce(0.2f);
contact.setBounceVel(0.02f);
contact.setMu(0f);
}
However, it won’t work neither if use default collision values.
Can someone help me?
Thanks in advance!