Function RichFunnel.Update
Update
(Vector3 position, List<Vector3> buffer, int numCorners, out bool lastCorner, out bool requiresRepath)
Find the next points to move towards and clamp the position to the navmesh.
Public
Vector3 Update (
position | The position of the agent. |
|
List<Vector3> | buffer | Will be filled with up to numCorners points which are the next points in the path towards the target. |
int | numCorners | See buffer. |
out bool | lastCorner | True if the buffer contains the end point of the path. |
out bool | requiresRepath | True if nodes along the path have been destroyed and a path recalculation is necessary. |
Find the next points to move towards and clamp the position to the navmesh.
Return
The position of the agent clamped to make sure it is inside the navmesh.