Exemple #1
0
        void Start()
        {
            agentsMap = new PFDynamicPotentialsMap(MapConfig.origin, MapConfig.width, MapConfig.height);
            agentsMap.addPotentialField(Performance.current.goalField);
            for (int i = 0; i < Performance.current.agents.Count; i++)
            {
                if (Performance.current.agents[i].curAgent != this.curAgent)
                {
                    agentsMap.addPotentialField(Performance.current.agents[i].curAgent);
                }
            }


            curAgent.addStaticPotentialsMap(Performance.current.obstaclesPotentialsMap);
            curAgent.addDynamicPotentialsMap(agentsMap);
        }
Exemple #2
0
 public void addDynamicPotentialsMap(PFDynamicPotentialsMap curMap)
 {
     dynamicPotentialsMaps.Add(curMap);
 }