Discontinuous molecular dynamics for rigid bodies: applications.