Added temporary workarround for spawn points

This commit is contained in:
Marc Garcia Puig 2020-04-30 11:40:53 +02:00
parent 9f5f4b9a2e
commit f5df364089
1 changed files with 4 additions and 0 deletions

View File

@ -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';