Vehicle AI update

This commit is contained in:
Xisco Bosch 2017-05-25 10:24:28 +02:00
parent e4d55e3464
commit 554c6cde2f
1 changed files with 7 additions and 1 deletions

View File

@ -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();