Contact forces handling, see section 7.1.