Formulatin of spatial contact situations in rigid multibody systems