Rename Navigation.ProjectPoint into Navigation.FindClosestPoint to have consistent API naming

#2034
This commit is contained in:
Wojtek Figat
2024-02-17 09:07:37 +01:00
parent 17361d6bc1
commit 5de5e576e5
5 changed files with 33 additions and 9 deletions

View File

@@ -325,11 +325,11 @@ bool Navigation::TestPath(const Vector3& startPosition, const Vector3& endPositi
return NavMeshes.First()->TestPath(startPosition, endPosition);
}
bool Navigation::ProjectPoint(const Vector3& point, Vector3& result)
bool Navigation::FindClosestPoint(const Vector3& point, Vector3& result)
{
if (NavMeshes.IsEmpty())
return false;
return NavMeshes.First()->ProjectPoint(point, result);
return NavMeshes.First()->FindClosestPoint(point, result);
}
bool Navigation::FindRandomPoint(Vector3& result)