Hermite curve collision detection using nonlinear optimization for use with Absolute Nodal Coordinate Formulation (ANCF).