Rename Navigation.ProjectPoint into Navigation.FindClosestPoint to have consistent API naming
#2034
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user