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.

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

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
UpgradeSerializedData (isUnityThread)
Protected