diff options
author | Aki <please@ignore.pl> | 2022-12-30 15:14:16 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-12-30 15:14:16 +0100 |
commit | b97194349aa9730db0097b2e5de0c882a653aea2 (patch) | |
tree | a981d70b6ffd1363ed99ee2ec60c1c648dcf451d /sim | |
parent | dc07ea38403ef8a00715fd2043fc1cb56b04a806 (diff) | |
download | kurator-b97194349aa9730db0097b2e5de0c882a653aea2.zip kurator-b97194349aa9730db0097b2e5de0c882a653aea2.tar.gz kurator-b97194349aa9730db0097b2e5de0c882a653aea2.tar.bz2 |
Rotated RandomSpawner to spawn first team on the left
Diffstat (limited to 'sim')
-rw-r--r-- | sim/src/RandomSpawner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |