Finds a random point on the navigation mesh. This function is using reservoir sampling and can fail in rare occurences even if there is an actual solution.
The navigation mesh
Query filter to apply to polygons
Function that returns random values between [0,1]
The result object with success flag, random point, and polygon reference
Finds a random point on the navigation mesh. This function is using reservoir sampling and can fail in rare occurences even if there is an actual solution.