A batter in a baseball game is swinging at the ball.
That hit could be a home run for the player at bat.
A man in uniform is swinging a bat to hit a baseball
A baseball player preparing to hit a baseball during a game.
The man at bat has just swung at the ball.