// Compute restitution
// Relative velocity at contact
Vector2f relativeVelocity = new Vector2f(body2.getVelocity());
relativeVelocity.add(MathUtil.cross(r2, body2.getAngularVelocity()));
relativeVelocity.sub(body1.getVelocity());
relativeVelocity.sub(MathUtil.cross(r1, body1.getAngularVelocity()));
float combinedRestitution = (body1.getRestitution() * body2.getRestitution());
float relVel = c.normal.dot(relativeVelocity);
c.restitution = combinedRestitution * -relVel;
c.restitution = Math.max(c.restitution, 0);