Class LegacyRVOController Extends RVOController

Public

RVO Character Controller.

Designed to be used as a drop-in replacement for the Unity Character Controller, it supports almost all of the same functions and fields with the exception that due to the nature of the RVO implementation, desired velocity is set in the Move function and is assumed to stay the same until something else is requested (as opposed to reset every frame).

For documentation of many of the variables of this class: refer to the Pathfinding.RVO.IAgent interface.

Note

Requires an RVOSimulator in the scene

See

Pathfinding.RVO.IAgent

RVOSimulator

Deprecated

Use the RVOController class instead. This class only exists for compatibility reasons.

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

Update ()
Public

Public Variables

enableRotation
Public
mask

Layer mask for the ground.

Public
rotationSpeed
Public

Inherited Public Members

agentTimeHorizon

How far into the future to look for collisions with other agents (in seconds)

Public
CalculateMovementDelta (deltaTime)

Direction and distance to move in a single frame to avoid obstacles.

Public
CalculateMovementDelta (position, deltaTime)

Direction and distance to move in a single frame to avoid obstacles.

Public
center

Center of the agent relative to the pivot point of this game object.

Public
collidesWith

Layer mask specifying which layers this agent will avoid.

Public
debug

Enables drawing debug information in the scene view.

Public
height

Height of the agent in world units.

Public
layer

Specifies the avoidance layer for this agent.

Public
locked

A locked unit cannot move.

Public
lockWhenNotMoving

Automatically set locked to true when desired velocity is approximately zero.

Public
maxNeighbours

Max number of other agents to take into account.

Public
Move (vel)

Set the desired velocity for the agent.

Public
movementPlane

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

Public
obstacleTimeHorizon

How far into the future to look for collisions with obstacles (in seconds)

Public
position

Current position of the agent.

Public
priority

How strongly other agents will avoid this agent.

Public
radius

Radius of the agent in world units.

Public
rvoAgent

Reference to the internal agent.

Public
SetCollisionNormal (normal)

Set the normal of a wall (or something else) the agent is currently colliding with.

Public
SetTarget (pos, speed, maxSpeed)

Set the target point for the agent to move towards.

Public
simulator

Reference to the rvo simulator.

Public
To2D (p)

Converts a 3D vector to a 2D vector in the movement plane.

Public
To2D (p, elevation)

Converts a 3D vector to a 2D vector in the movement plane.

Public
To3D (p, elevationCoordinate)

Converts a 2D vector in the movement plane as well as an elevation to a 3D coordinate.

Public
velocity

Current calculated velocity of the agent.

Public

Private/Protected Members

ai

Cached reference to a movement script (if one is used)

Protected
Awake ()
Protected
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
tr

Cached tranform component.

Protected
UpdateAgentProperties ()
Protected