On The Dynamics Of Constrained Rigid Bodies