Change Shape Attributes After Creation

Hello everyone.

I notice that there are no Shape::SetFriction, Shape::SetRestitution, etc. Why is that? How bad is it to change these attributes after they're created?

The reason I ask is because I'm creating a Lua wrapper for Box2D, and instead of:

Code:
circle = newCircle(friction, restitution, density, x, y, radius)

I want:

Code:
circle = newCircle(x, y, radius)
circle:setFriction(f)
... etc

So ... how doomed am I if I change these?
When a contact is created the friction is mixed between the two shapes. This mixed friction is cached in the contact.
Ah, I see. Thanks.

So changing the friction will not change the mixed friction of all relevant contact points. But it will change the next contact point, right? As long as the friction is set before the contact point is created?
Correct.

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