A batter prepares to swing at a ball .