mixFriction static method

double mixFriction(
  1. double friction1,
  2. double friction2
)

Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For example, anything slides on ice.

Implementation

static double mixFriction(double friction1, double friction2) {
  return sqrt(friction1 * friction2);
}