A baseball player swings the bat to hit the ball.