Energy Conserving and Projection Methods for the Real-Time Dynamics of Multibody Systems