A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
RVOController Class Reference

RVO Character Controller. More...

+ Inheritance diagram for RVOController:
+ Collaboration diagram for RVOController:

Public Member Functions

void Awake ()
 
void Move (Vector3 vel)
 
void OnDisable ()
 
void OnEnable ()
 
void Teleport (Vector3 pos)
 
void Update ()
 

Public Attributes

float agentTimeHorizon = 2
 
Vector3 center
 
bool debug = false
 
float falloff = 1
 
float height = 1
 
bool locked = false
 
LayerMask mask = -1
 
float maxSpeed = 2
 
float obstacleTimeHorizon = 2
 
float radius = 5
 
float wallAvoidForce = 1
 

Protected Member Functions

void UpdateAgentProperties ()
 

Properties

Vector3 position [get]
 
Vector3 velocity [get]
 

Private Attributes

float adjustedY = 0
 
Vector3 desiredVelocity
 
Vector3 lastPosition
 Position for the previous frame.
 
IAgent rvoAgent
 
Simulator simulator
 
Transform tr
 

Detailed Description

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).

Note
Requires an RVOSimulator in the scene

The documentation for this class was generated from the following file: