SetFriction() in 2.2

Hello. I'm not 100% sure this is a problem in Box2D 2.2 but in any case the problem started after I upgraded to 2.2.0. SVN version doesn't work either.

In my game I use the b2Fixture::SetFriction method quite often on the player character's "feet" fixture. After the update the friction sometimes doesn't change (i.e. the friction stays high after a call to SetFriction with a low value). I'm pretty sure SetFriction is being called but nothing is happening.
I have to investigate a bit more to know when exactly it is not working. It happens sometimes when the object is touching two different bodies.

Were there any significant changes to the SetFriction mechanism?

Thank you!
From b2Fixture:

Code:
   /// Set the coefficient of friction. This will _not_ change the friction of
   /// existing contacts.
   void SetFriction(float32 friction);


You can go through the body's contact list to update friction on existing contacts using b2Contact::SetFriction.
Oh, thank you very much!
Is this something that changed in 2.2?
I will try this out.
I solved the problem by adding the following code after the b2Fixture::SetFriction call(s):
Code:
for ( b2ContactEdge* contactEdge = m_body->GetContactList();
        contactEdge;
        contactEdge = contactEdge->next )
{
      contactEdge->contact->ResetFriction();
}

Just to be sure: in the description of the b2Contact::SetFriction method it states that "You can call this in b2ContactListener::PreSolve" (I assume that is valid for ResetFriction too). But can I also call the method after the full physics step?

Thanks for the help!
Yes, that is fine.
This is a bit off topic but thank you for the great library and the great support! 😀

Original thread: https://box2d.org/forum/viewtopic.php?t=7631