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:
parent
eae2cab29f
commit
9a7c05c80e
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue