variable stiffness for distance constraints