a baseball player swings his bat to hit a baseball .