From b97194349aa9730db0097b2e5de0c882a653aea2 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 30 Dec 2022 15:14:16 +0100 Subject: Rotated RandomSpawner to spawn first team on the left --- sim/src/RandomSpawner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim') diff --git a/sim/src/RandomSpawner.cpp b/sim/src/RandomSpawner.cpp index 8c401b2..7b85f21 100644 --- a/sim/src/RandomSpawner.cpp +++ b/sim/src/RandomSpawner.cpp @@ -25,7 +25,7 @@ Transform RandomSpawner::get(const int team) { const double distance = distribution_d(device); - const double clean_angle = angle_step * team; + const double clean_angle = M_PI + angle_step * team; const double angle = clean_angle + distribution_a(device); double facing = clean_angle + M_PI; if (facing > 2 * M_PI) -- cgit v1.1