Add TestPath utility to navigation system
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user