Measuring Distance between Nearly Intersected Objects in Narrow Phase Collision Detection