// 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; }