Class LightweightRVO Extends MonoBehaviour
Lightweight example script for simulating rvo agents.
This script, compared to using lots of RVOController components shows the real power of the RVO simulator when little other overhead (e.g GameObjects and pathfinding) is present.
With this script, I can simulate 30 000 agents at over 60 fps on my, admittedly quite beefy, machine (in a standalone build, with the local avoidance simulation running at a fixed 60 fps and using up to 14 cores of my machine). This is significantly more than one can simulate when using GameObjects for each agent.
This script will render the agents by generating a square for each agent combined into a single mesh with appropriate UV.
A few GUI buttons will be drawn by this script with which the user can change the number of agents.
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
Inner Types
Public Methods
Create a number of agents in circle and restart simulation.
Public Variables
Number of agents created at start.
How far in the future too look for agents.
Bitmas of debugging options to enable for the agents.
How large is the area in which the agents are distributed when starting the simulation.
Max number of neighbour agents to take into account.
Max speed for an agent.
How far in the future too look for obstacles.
Agent radius.
Offset from the agent position the actual drawn postition.
How the agents are distributed when starting the simulation.
Public Enums
Private/Protected Members
Create a single agent entity.