Real c = range_stiffness (l, r, dist > d);
Real block_stretch = dist - d;
Real c = range_stiffness (l, r, dist > d);
Real block_stretch = dist - d;
Real spring_dist = range_ideal_len (l, r);
if (spring_dist < dist)
for (int i = l; i < r; i++)
Real spring_dist = range_ideal_len (l, r);
if (spring_dist < dist)
for (int i = l; i < r; i++)