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 Static Methods

AddComp (command)

Public Variables

Order

Modifiers will be executed from lower order to higher 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)
seeker
Public

Private/Protected Members

Awake ()

Alerts the Seeker that this modifier exists.

OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Reset ()

Handle serialization backwards compatibility.

UpgradeSerializedData (isUnityThread)