Curve trajectory triangle collision detection