Define and handle the constraint on the contact