Class FunnelModifier Extends MonoModifier

Public

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.

Note

The Pathfinding.RichAI movement script has its own internal funnel modifier. You do not need to attach this component if you are using the RichAI movement script.

Public Methods

Apply (path)

Called for each path that the Seeker calculates after the calculation has finished.

Public

Public Static Methods

AddComp (command)
Public Static

Public Variables

Order
Public
quality

Determines if funnel simplification is used.

Public
splitAtEveryPortal

Insert a vertex every time the path crosses a portal instead of only at the corners of the path.

Public
unwrap

Determines if twists and bends should be straightened out before running the funnel algorithm.

Public

Public Enums

FunnelQuality
Public

Inherited Public Members

PreProcess (path)
Public
seeker
Public

Private/Protected Members

Awake ()
Protected
OnDisable ()
Protected
OnEnable ()

Alerts the Seeker that this modifier exists.

Protected
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected