示例#1
0
 // destroy the dynamic obstacles we already have
 public void RemoveDynamicObstacles(Pathfinding.RVO.Simulator sim)
 {
     if (null != _dynamicObstacles)
     {
         if (null != sim)
         {
             for (int i = 0; i < _dynamicObstacles.Count; i++)
             {
                 sim.RemoveDynamicObstacle(_dynamicObstacles[i]);
             }
         }
         _dynamicObstacles.Clear();
     }
 }