From f5df364089589143b3921e668d78cfe82aa5741f Mon Sep 17 00:00:00 2001 From: Marc Garcia Puig Date: Thu, 30 Apr 2020 11:40:53 +0200 Subject: [PATCH] Added temporary workarround for spawn points --- Examples/CppClient/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Examples/CppClient/main.cpp b/Examples/CppClient/main.cpp index 3eebfcdd2..36c315200 100644 --- a/Examples/CppClient/main.cpp +++ b/Examples/CppClient/main.cpp @@ -94,6 +94,10 @@ int main(int argc, const char *argv[]) { auto map = world.GetMap(); auto transform = RandomChoice(map->GetRecommendedSpawnPoints(), rng); + // Temporary workaround: + // Move the spawn point a bit up otherwise they can collide. + transform.location.z += 0.30f; + // Spawn the vehicle. auto actor = world.SpawnActor(blueprint, transform); std::cout << "Spawned " << actor->GetDisplayId() << '\n';