Small update in the drop off random values.

This commit is contained in:
Daniel Santos-Olivan 2020-06-29 10:53:16 +02:00 committed by Marc Garcia Puig
parent 759f7bfe6d
commit ba230da58f
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ float ARayCastLidar::ComputeIntensity(const FVector &LidarBodyLoc, const FVector
bool ARayCastLidar::ShootLaser(const uint32 Channel, const float HorizontalAngle, FVector &XYZ, float &Intensity) const
{
if(RandomEngine->GetUniformFloat() > 0.7f)
if(RandomEngine->GetUniformFloat() > 0.55f)
return false;
const float VerticalAngle = LaserAngles[Channel];
@ -192,7 +192,7 @@ bool ARayCastLidar::ShootLaser(const uint32 Channel, const float HorizontalAngle
Intensity = ComputeIntensity(LidarBodyLoc, XYZ, HitInfo);
if(Intensity*0.5 + 0.5 < RandomEngine->GetUniformFloat())
if(Intensity*0.5 + 0.6 < RandomEngine->GetUniformFloat())
return false;
return true;