Class FunnelModifier Extends MonoModifier
Simplifies paths on navmesh graphs using the funnel algorithm.
The funnel algorithm is an algorithm which can, given a path corridor with nodes in the path where the nodes have an area, like triangles, it can find the shortest path inside it. This makes paths on navmeshes look much cleaner and smoother.
The funnel modifier also works on grid graphs however since it only simplifies the paths within the nodes which the original path visited it may not always simplify the path as much as you would like it to. The RaycastModifier can be a better fit for grid graphs.
Public Methods
Main post processing method.
Public Variables
Insert a vertex every time the path crosses a portal instead of only at the corners of the path.
Determines if twists and bends should be straightened out before running the funnel algorithm.
Inherited Public Members
Called for each path that the Seeker calculates after the calculation has finished.
Private/Protected Members
Handle serialization backwards compatibility.