blocking character to move further

im creating game with tanks and there arent any blocks or wall on map. so when i go to any corner of the map almost all tank dissapears. how to make the line where character can no longer pass the line? since there arent any walls in map another question would be will i need to do the same thing with walls, making the line around wall? or unity automatically blocks movement of tank to wall?