Dynamics of the Rigid Solid with General Constraints by a Multibody Approach