New LineTrace avoids blocking physics scene

This change takes advantage of the new function for raycast
included in the our version of the engine that does not block
the PhysiX scene.
This commit is contained in:
Daniel Santos-Olivan 2021-04-08 18:32:51 +02:00 committed by bernat
parent eae2cab29f
commit 9a7c05c80e
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ void ARadar::SendLineTraces(float DeltaTime)
MaxRy * Radius * Sin
});
const bool Hitted = GetWorld()->LineTraceSingleByChannel(
const bool Hitted = GetWorld()->ParallelLineTraceSingleByChannel(
OutHit,
RadarLocation,
EndLocation,

View File

@ -217,7 +217,7 @@ bool ARayCastSemanticLidar::ShootLaser(const float VerticalAngle, const float Ho
const auto Range = Description.Range;
FVector EndTrace = Range * UKismetMathLibrary::GetForwardVector(ResultRot) + LidarBodyLoc;
GetWorld()->LineTraceSingleByChannel(
GetWorld()->ParallelLineTraceSingleByChannel(
HitInfo,
LidarBodyLoc,
EndTrace,