Text this: Measuring distance between nearly intersected objects in narrow phase collision detection