We dynamically increase the spring stiffness during initial contact while using full damping to avoid a large spring impulse. As the spring breaks, we first decrease the stiffness to zero followed by the damping. We allow the spring constants to reengage if the particle’s distance decreases before thespring breaks, so that the contacts do not pass through one another.