From 554c6cde2f8b873909636e96241df102acd2cc9c Mon Sep 17 00:00:00 2001 From: Xisco Bosch Date: Thu, 25 May 2017 10:24:28 +0200 Subject: [PATCH] Vehicle AI update --- Source/Carla/AI/AICarlaVehicleController.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Carla/AI/AICarlaVehicleController.cpp b/Source/Carla/AI/AICarlaVehicleController.cpp index 717624944..e5226edc4 100644 --- a/Source/Carla/AI/AICarlaVehicleController.cpp +++ b/Source/Carla/AI/AICarlaVehicleController.cpp @@ -231,8 +231,14 @@ void AAICarlaVehicleController::Tick(float DeltaTime){ float AAICarlaVehicleController::GoTo(FVector objective){ + + UE_LOG(LogCarla, Log, + TEXT("it: %i"), + route_it + ); + float steering = 0; - if (objective.Equals(GetPawn()->GetActorLocation(), 40.0f)){ + if (objective.Equals(GetPawn()->GetActorLocation(), 80.0f)){ ++route_it; if (route_it == route.Num()){ route.Empty();