// Apply accumulated impulse.
accumulatedImpulse.scale(relaxation);
Vector2f accum1 = new Vector2f(accumulatedImpulse);
accum1.scale(-body1.getInvMass());
body1.adjustVelocity(accum1);
body1.adjustAngularVelocity(-(body1.getInvI() * MathUtil.cross(r1, accumulatedImpulse)));
Vector2f accum2 = new Vector2f(accumulatedImpulse);
accum2.scale(body2.getInvMass());