Restrain the distance between a pair of particles.