A* Pathfinding Project  3.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
FunnelModifier Class Reference

Simplifies paths on navmesh graphs using the funnel algorithm. More...

Detailed Description

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.

funnelModifier_on.png

Public Member Functions

override void Apply (Path p)
 Main Post-Processing function.
 
- Public Member Functions inherited from MonoModifier
void Awake ()
 Alerts the Seeker that this modifier exists.
 
void OnDestroy ()
 
void OnDisable ()
 
void OnEnable ()
 
virtual void PreProcess (Path p)
 
- Public Member Functions inherited from IPathModifier
void Apply (Path p)
 
void PreProcess (Path p)
 

Static Public Member Functions

static bool RunFunnel (List< Vector3 > left, List< Vector3 > right, List< Vector3 > funnelPath)
 Calculate a funnel path from the left and right portal lists.
 

Properties

override int Order [get]
 
- Properties inherited from MonoModifier
abstract int Order [get]
 Modifiers will be executed from lower order to higher order.
 
- Properties inherited from IPathModifier
int Order [get]
 

Additional Inherited Members

- Public Attributes inherited from MonoModifier
Seeker seeker
 

Member Function Documentation

override void Apply ( Path  p)
virtual

Main Post-Processing function.

Implements MonoModifier.

static bool RunFunnel ( List< Vector3 >  left,
List< Vector3 >  right,
List< Vector3 >  funnelPath 
)
static

Calculate a funnel path from the left and right portal lists.

The result will be appended to funnelPath

Property Documentation

override int Order
get

The documentation for this class was generated from the following file: