Directional test:
if they collided:
  if rect1 further left than rect2:
    return left
etc.

Reply via email to