Friction

From Box2D Wiki

Friction is the force generated when two shapes slide along each other. It is set in Box2d in b2ShapeDef.friction. Box2D supports static and dynamic friction, but uses the same parameter for both. Friction is simulated accurately in Box2D and the friction strength is proportional to the normal force (this is called Coulomb friction). The friction parameter is usually set between 0 and 1. A value of zero turns off friction and a value of one makes the friction relatively strong. When the friction is computed between two shapes, Box2D must combine the friction parameters of the two shapes. This is done with the following formula:

float32 friction;
friction = sqrtf(shape1->friction * shape2->friction);

The instantaneous dynamic friction of a contact can be found from b2ContactPoint.tangentForce.

Box2d does not support rolling resistance. As a consequence, circles roll forever on flat surfaces with no damping.

See Also

TOOLBOX
LANGUAGES