Class RVOSimulator Extends VersionedMonoBehaviour

Public

Unity front end for an RVO simulator.

Attached to any GameObject in a scene, scripts such as the RVOController will use the simulator exposed by this class to handle their movement. In pretty much all cases you should only have a single RVOSimulator in the scene.

You can have more than one of these, however most scripts which make use of the RVOSimulator will use the active property which just returns the first simulator in the scene.

This is only a wrapper class for a Pathfinding.RVO.Simulator which simplifies exposing it for a unity scene.

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

GetSimulator ()

Get the internal simulator.

Public

Public Variables

desiredSimulationFPS

Desired FPS for rvo simulation.

Public
doubleBuffering

Calculate local avoidance in between frames.

Public
drawObstacles

Draw obstacle gizmos to aid with debugging.

Public
movementPlane

Determines if the XY (2D) or XZ (3D) plane is used for movement.

Public
symmetryBreakingBias

Bias agents to pass each other on the right side.

Public
workerThreads

Number of RVO worker threads.

Public

Public Static Variables

active

First RVOSimulator in the scene (usually there is only one)

Public Static

Private/Protected Members

Awake ()
Protected
ObstacleColor
Private Static
OnDisable ()
Private
OnDrawGizmos ()
Private
OnEnable ()
Private
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
Update ()

Update the simulation.

Private
UpgradeSerializedData (isUnityThread)
Protected
gizmos
Private
simulator

Reference to the internal simulator.

Private