How environment affects active particle swarms: a case study