Geometric control of active collective motion.