Small fix to traffic light spawn.

This commit is contained in:
Axel1092 2020-07-23 22:43:48 +02:00 committed by Axel1092
parent cbd12ac056
commit 6d4e92bc6d
1 changed files with 2 additions and 2 deletions

View File

@ -369,8 +369,8 @@ T * GetClosestTrafficSignActor(const carla::road::Signal &Signal, UWorld* World)
auto CarlaTransform = Signal.GetTransform();
FTransform UETransform(CarlaTransform);
FVector Location = UETransform.GetLocation();
// max distance to match 50cm
constexpr float MaxDistanceMatchSqr = 2500.0;
// max distance to match 500cm
constexpr float MaxDistanceMatchSqr = 250000.0;
T * ClosestTrafficSign = nullptr;
TArray<AActor*> Actors;
UGameplayStatics::GetAllActorsOfClass(World, T::StaticClass(), Actors);