Fix #371 bounding box was scaled twice when computing map intersection

This commit is contained in:
nsubiron 2018-04-23 10:57:05 +02:00
parent 79c81bf3fe
commit 2d52245d3e
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ void ACarlaVehicleController::IntersectPlayerWithRoadMap()
check(BoundingBox != nullptr);
auto Result = RoadMap->Intersect(
BoundingBox->GetComponentTransform(),
Vehicle->GetVehicleBoundingBoxExtent(), // Get scaled bounding box extent.
BoundingBox->GetUnscaledBoxExtent(),
ChecksPerCentimeter);
CarlaPlayerState->OffRoadIntersectionFactor = Result.OffRoad;