Only collide with closest platform.

While doing collision detection, we keep track of the closest platform that overlapped with the motion bounding box and only adjust the character if it's the closest platform.