SetNumWorkers() public method

Sets the number of workers.
public SetNumWorkers ( int numWorkers ) : void
numWorkers int The number of workers.
return void
Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        units = new List <AIPath>();
        sim   = RVO.Simulator.Instance;

        sim.setAgentDefaults(neighborDist, maxNeighbors, timeHorizon, timeHorizonObst, radius, maxSpeed, new RVO.Vector2(0, 0));

        sim.SetNumWorkers(1);
        //TODO add obstacles?
        //process obstacles
        sim.processObstacles();

        instance = this;
    }