Class RVOObstacle Extends VersionedMonoBehaviour

Public Abstract

Base class for simple RVO colliders.

This is a helper base class for RVO colliders. It provides automatic gizmos and helps with the winding order of the vertices as well as automatically updating the obstacle when moved.

Extend this class to create custom RVO obstacles.

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

OnDisable ()

Disables the obstacle.

Public
OnDrawGizmos ()

Draws Gizmos.

Public
OnDrawGizmos (selected)

Draws Gizmos.

Public
OnDrawGizmosSelected ()

Draws Gizmos.

Public
OnEnable ()

Enabled the obstacle.

Public
Start ()

Creates obstacles.

Public
Update ()

Updates obstacle if required.

Public

Public Variables

layer
Public
obstacleMode

Mode of the obstacle.

Public

Public Enums

ObstacleVertexWinding

RVO Obstacle Modes.

Public

Private/Protected Members

AddObstacle (vertices, height)

Adds an obstacle with the specified vertices.

Protected
AddObstacleInternal (vertices, height)

Adds an obstacle.

Private
AreGizmosDirty ()

Called in the editor.

Protected Abstract
Awake ()
Protected
CreateObstacles ()

Create Obstacles.

Protected Abstract
ExecuteInEditor

Enable executing in editor to draw gizmos.

Protected Abstract
FindSimulator ()

Finds a simulator in the scene.

Protected
GetMatrix ()

Get's the matrix to use for vertices.

Protected
Height
Protected Abstract
LocalCoordinates

If enabled, all coordinates are handled as local.

Protected Abstract
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
StaticObstacle

Static or dynamic.

Protected Abstract
WindCorrectly (vertices)

Winds the vertices correctly.

Private
_obstacleMode

Last obstacle mode.

Private
addedObstacles

All obstacles added.

Private
gizmoDrawing

Enabled if currently in OnDrawGizmos.

Private
gizmoVerts

Vertices for gizmos.

Private
prevUpdateMatrix

Last matrix the obstacle was updated with.

Private
sim

Reference to simulator.

Protected
sourceObstacles

Original vertices for the obstacles.

Private