Guide to Dynamic Simulations of Rigid Bodies and