Hello. Can somebody add acceptance radius argument to SimpleMoveToLocation() of Engine / Source / Runtime / Engine / Private / AI / Navigation / NavigationSystem.cpp ?
It should look like this:
void UNavigationSystem::SimpleMoveToLocation(AController* Controller, const FVector& Goal, float AcceptanceRadius)
{
UNavigationComponent* PFindComp = NULL;
UPathFollowingComponent* PFollowComp = NULL;
if (Controller)
{
Controller->InitNavigationControl(PFindComp, PFollowComp);
}
if (PFindComp && PFollowComp && !PFollowComp->HasReached(Goal, AcceptanceRadius))
{
const bool bPathExists = PFindComp->FindPathToLocation(Goal);
if (bPathExists)
{
PFollowComp->RequestMove(PFindComp->GetPath(), NULL, AcceptanceRadius);
}
}
}
It’ll be helpful in some cases.