From 10bc39ac677f957a8250dc1b2dbe95746664dcad Mon Sep 17 00:00:00 2001 From: Rajat Singhal Date: Thu, 23 Apr 2020 07:24:05 +0530 Subject: [PATCH] Fix Lidar DrawDebugPoints causing crash Make the points non-persistent and reduce Lifetime --- Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp b/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp index 6d8bf1eeb5..1aa75cc494 100644 --- a/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp +++ b/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp @@ -671,10 +671,10 @@ void ASimModeBase::drawLidarDebugPoints() DrawDebugPoint( this->GetWorld(), uu_point, - 5, //size + 5, // size FColor::Green, - true, //persistent (never goes away) - 0.1 //point leaves a trail on moving object + false, // persistent (never goes away) + 0.03 // LifeTime: point leaves a trail on moving object ); } }