N Rigid-body Dynamics