final int next = (i == bodies.length - 1) ? 0 : i + 1;
delta.set(toExtrude * (normals[i].x + normals[next].x), toExtrude * (normals[i].y + normals[next].y));
// sumdeltax += dx;
float norm = delta.length();
if (norm > Settings.maxLinearCorrection) {
delta.mulLocal(Settings.maxLinearCorrection / norm);
}
if (norm > Settings.linearSlop) {
done = false;
}
bodies[next].m_sweep.c.x += delta.x;