Demo to detect ball collision against a box border. Collision detection is done based on center point of ball.