how the ball recognize the angle of the floor.