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 using a different algorithm, but which yields visually similar results.

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
accountForGridPenalties

When using a grid graph, take penalties, tag penalties and ITraversalProvider penalties into account.

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

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