Planar Rigid-Body Dynamics