Make the tolerance setting of the gravity sim dependent on the log-average of distances between objects