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.

See

Pathfinding.RVO.Simulator

Local Avoidance

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

DrawGizmos ()
Public
GetSimulator ()

Get the internal simulator.

Public

Public Variables

desiredSimulationFPS

Desired FPS for rvo simulation.

Public
drawQuadtree
Public
hardCollisions

Prevent agent overlap more aggressively.

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
useNavmeshAsObstacle

Allows the local avoidance system to take the edges of the navmesh into account.

Public

Public Static Variables

active

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

Public Static

Private/Protected Members

Awake ()
Protected
OnDisable ()
Private
OnEnable ()
Private
OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
Update ()

Update the simulation.

Private
UpgradeSerializedData (isUnityThread)
Protected
simulatorBurst

Reference to the internal simulator.

Private

Deprecated Members

doubleBuffering

Calculate local avoidance in between frames.

Public
workerThreads

Number of RVO worker threads.

Public