Indoor Batting Cage

We are installing some batting cages in a warehouse space.  How much distance do we need between the net on the cage to the wall? We recommend a minimum of 2′ from the net to the wall.