From beb18734b1a5c7094b8b43b625b511b8c859e85d Mon Sep 17 00:00:00 2001 From: baz Date: Fri, 9 Feb 2024 18:22:12 +0000 Subject: [PATCH] Add default GetSplinePointAtWorld function --- Source/Nakatomi/PatrolRoute.cpp | 5 ++++- Source/Nakatomi/PatrolRoute.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Nakatomi/PatrolRoute.cpp b/Source/Nakatomi/PatrolRoute.cpp index 53761f7..df7c94a 100644 --- a/Source/Nakatomi/PatrolRoute.cpp +++ b/Source/Nakatomi/PatrolRoute.cpp @@ -24,8 +24,11 @@ void APatrolRoute::IncrementPatrolRoute() } PatrolIndex += Direction; +} - +FVector APatrolRoute::GetSplinePointAtWorld() +{ + return GetSplinePointAtWorld(PatrolIndex); } FVector APatrolRoute::GetSplinePointAtWorld(int pointIndex) diff --git a/Source/Nakatomi/PatrolRoute.h b/Source/Nakatomi/PatrolRoute.h index 5989f1a..ee9a9d2 100644 --- a/Source/Nakatomi/PatrolRoute.h +++ b/Source/Nakatomi/PatrolRoute.h @@ -28,5 +28,7 @@ public: void IncrementPatrolRoute(); + FVector GetSplinePointAtWorld(); + FVector GetSplinePointAtWorld(int pointIndex); };