Numerical analysis of rigid body behaviour