Class RVONavmesh Extends GraphModifier

Public

Adds a navmesh as RVO obstacles.

Add this to a scene in which has a navmesh or grid based graph, when scanning (or loading from cache) the graph it will be added as RVO obstacles to the RVOSimulator (which must exist in the scene).

Warning

You should only have a single instance of this script in the scene, otherwise it will add duplicate obstacles and thereby increasing the CPU usage.

If you update a graph during runtime the obstacles need to be recalculated which has a performance penalty. This can be quite significant for larger graphs.

In the screenshot the generated obstacles are visible in red.

A* Pro Feature:

This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited.
The Pro version can be bought here

Public Methods

OnGraphsPostUpdate ()

Called after graphs have been updated using GraphUpdateObjects.

Public
OnLatePostScan ()

Called at the end of the scanning procedure.

Public
OnPostCacheLoad ()

Called after cached graphs have been loaded.

Public
RemoveObstacles ()

Removes all obstacles which have been added by this component.

Public

Public Variables

wallHeight

Height of the walls added for each obstacle edge.

Public

Inherited Public Members

EventType

GraphModifier event type.

Public
FindAllModifiers ()
Public Static
OnGraphsPreUpdate ()

Called before graphs are updated using GraphUpdateObjects.

Public
OnPostScan ()

Called right after all graphs have been scanned.

Public
OnPreScan ()

Called right before graphs are going to be scanned.

Public
TriggerEvent (type)

Triggers an event for all active graph modifiers.

Public Static

Private/Protected Members

AddGraphObstacles (simulator, navmesh)

Adds obstacles for a navmesh/recast graph.

Private
AddGraphObstacles (sim, grid)

Adds obstacles for a grid graph.

Private
Awake ()
Protected
GetModifiersOfType< T > ()
Protected Static
lastSim

Last simulator used.

Private
obstacles

Obstacles currently added to the simulator.

Private Readonly
OnDestroy ()
Protected
OnDisable ()

Removes this modifier from list of active modifiers.

Protected
OnEnable ()

Adds this modifier to list of active modifiers.

Protected
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
uniqueID

Unique persistent ID for this component, used for serialization.

Protected
usedIDs

Maps persistent IDs to the component that uses it.

Protected Static