Function FunnelState.CalculateNextCornerIndices
Calculate the shortest path through the funnel.
int CalculateNextCornerIndices (
int | maxCorners | The maximum number of corners to add to the result array. Should be positive. |
NativeArray<int> | result | Output indices. Contains an index as well as possibly the RightSideBit set. Corresponds to an index of the left or right portals, depending on if RightSideBit is set. This must point to an array which is at least maxCorners long. |
float3 | startPoint | Start point of the funnel. The agent will move from here to the best point along the first portal. |
float3 | endPoint | End point of the funnel. |
out bool | lastCorner | True if the final corner of the path was reached. If true, then the return value is guaranteed to be at most maxCorners - 1 (unless maxCorners = 0). |
Calculate the shortest path through the funnel.
The number of corners added to the result array.