Skip to content

Commit

Permalink
Fix #371 bounding box was scaled twice when computing map intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
nsubiron committed Apr 23, 2018
1 parent 79c81bf commit 2d52245
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d52245

Please # to comment.