8#include "NavigationSystem.h"
9#include "Kismet/KismetMathLibrary.h"
10#include "AIController.h"
11#include "Navigation/PathFollowingComponent.h"
15#include "DrawDebugHelpers.h"
20 PrimaryActorTick.bCanEverTick =
false;
21 InteractableName = NSLOCTEXT(
"Agrarsense",
"WalkerInteractableName",
"Walker");
31 Super::EndPlay(EndPlayReason);
56 AAIController* AIControllerPtr = Cast<AAIController>(GetController());
79 for (int32 i = 0; i < Transforms.Num() - 1; ++i)
81 const FVector Start = Transforms[i].GetLocation();
82 const FVector End = Transforms[i + 1].GetLocation();
83 DrawDebugLine(GetWorld(), Start, End, FColor::Green,
false, LifeTime, 0, 5);
FWalkerParameters PreviousParameters
void DebugDrawLinesBetweenPoints(float LifeTime=10.0f)
FWalkerParameters WalkerParameters
virtual void SetIgnoreInput(bool IgnoreInput)
virtual void ResumeWalker()
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override
virtual void PauseWalker()
virtual void BeginPlay() override
void ChangeWalkerParameters(const FWalkerParameters &newParameters)
FString ExportToJsonFile(const FString &FileName)
static FString ExportWalkerToJSON(const FString &FileName, AWalker *Walker)
EWalkerAction WalkerAction
TArray< FTransform > Points