Add TestPath utility to navigation system

This commit is contained in:
Wojtek Figat
2021-01-14 13:11:32 +01:00
parent 93aa265b20
commit 7835259a83
4 changed files with 69 additions and 0 deletions

View File

@@ -32,6 +32,14 @@ public:
/// <returns>True if found valid path between given two points (it may be partial), otherwise false if failed.</returns>
API_FUNCTION() static bool FindPath(const Vector3& startPosition, const Vector3& endPosition, API_PARAM(Out) Array<Vector3, HeapAllocation>& resultPath);
/// <summary>
/// Tests the path between the two positions (non-partial).
/// </summary>
/// <param name="startPosition">The start position.</param>
/// <param name="endPosition">The end position.</param>
/// <returns>True if found valid path between given two points, otherwise false if failed.</returns>
API_FUNCTION() static bool TestPath(const Vector3& startPosition, const Vector3& endPosition);
/// <summary>
/// Projects the point to nav mesh surface (finds the nearest polygon).
/// </summary>