I'm trying to stop a rolling ball on the ground after calling addForce on the ball body. The ground is a GeomPlane and the ball is a GeomSphere.
In near_callback (the call-back function in the collision detection) I set the mu value for the contact, basically like this:
def near_callback(self, args, solid1, solid2): contacts = ode.collide(solid1, solid2) # Returns the actual collisions between two solids world, contactgroup = args for c in contacts: c.setBounce(.3) # How much bounce should happen from this collision c.setMu(10000) # How much friction there should be between the solids j = ode.ContactJoint(world, contactgroup, c) # A temporary joint joins the solids together j.attach(solid1.getBody(), solid2.getBody())
However, no matter what value I set, the ball just keeps on rolling. What to do ??
One suggestion is to add a reverse force but maybe there is a more simple solution ??