Text this: A Narrow-Phase Collision Detection Algorithm Based on Contact Theory in 2D.