Class RichFunnel Extends RichPathPart

Public

Public Methods

BuildFunnelCorridor (nodes, start, end)

Build a funnel corridor from a node list slice.

ClampToNavmesh (position)

Clamps the position to the navmesh and repairs the path if the agent has moved slightly outside it.

FindWalls (..., wallBuffer, ..., range)

...

Initialize (path, graph)

Works like a constructor, but can be used even for pooled objects.

Update (position, buffer, numCorners, lastCorner, requiresRepath)

Find the next points to move towards and clamp the position to the navmesh.

Public Variables

CurrentNode
Public
DistanceToEndOfPath

Approximate distance (as the crow flies) to the endpoint of this path part.

Public
exactEnd
Public
exactStart
Public
funnelSimplification

Post process the funnel corridor or not.

Public

Private/Protected Members

True if any node in the path is destroyed.

Searches for the node the agent is inside.

FindNextCorners (origin, startIndex, funnelPath, numCorners, lastCorner)
UpdateFunnelCorridor (splitIndex, prefix)

Split funnel at node index splitIndex and throw the nodes up to that point away and replace with prefix.

checkForDestroyedNodesCounter
Private
currentNode
Private
currentPosition
Private
graph
Private
left
Private Readonly
navmeshClampDict

Cached object to avoid unnecessary allocations.

navmeshClampList

Cached object to avoid unnecessary allocations.

navmeshClampQueue

Cached object to avoid unnecessary allocations.

nodes
Private
path
Private
right
Private Readonly
triBuffer
Private