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); };