summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-12-30 15:14:16 +0100
committerAki <please@ignore.pl>2022-12-30 15:14:16 +0100
commitb97194349aa9730db0097b2e5de0c882a653aea2 (patch)
treea981d70b6ffd1363ed99ee2ec60c1c648dcf451d /sim
parentdc07ea38403ef8a00715fd2043fc1cb56b04a806 (diff)
downloadkurator-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.cpp2
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)