Fix #371 bounding box was scaled twice when computing map intersection
This commit is contained in:
parent
79c81bf3fe
commit
2d52245d3e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue