The bat has rounded edges. If the ball hits there, the reflected angle depends on the surface normal angle of the bat where the ball touches. Calculations are in the ball sprite.