Re: [Odejava] Friction problem

are you calling contact.setIndex(i); whereby the i is the int in a loop looping through the contacts in a collision?

This is what i do:


for (int i = 0; i < collision.getContactCount(); i++) {
                  // set the index
                  contact.setIndex(i);
contact.setMode(Ode.dContactBounce | Ode.dContactApprox1);
                        contact.setBounce(0.4f);
                        contact.setBounceVel(1f);
                        contact.setMu(100f);
}

The dBounce stuff shouldn’t affect your problem. Its mainly the contact.setIndex…

DP