update distanceconstraint