示例#1
0
    // destroy the dynamic obstacles we already have and create new ones
    private void RemoveDynamicObstaclesAndCreateNew(Pathfinding.RVO.Simulator sim)
    {
        RemoveDynamicObstacles(sim);

        CreateObstacles(sim, ref _dynamicObstacles);
        if (null != _dynamicObstacles)
        {
            for (int i = 0; i < _dynamicObstacles.Count; i++)
            {
                sim.AddDynamicObstacle(_dynamicObstacles[i]);
            }
        }
    }