public void Init() { // make the database used to accelerate proximity queries cyclePD = -1; NextPD(); // create the specified number of Pedestrians population = 0; for (int i = 0; i < 10; i++) { population++; Pedestrian pedestrian = new Pedestrian(pd, path); pedestrian.Reset(); world.AddObject(ObjectCreator(pedestrian)); crowd.Add(pedestrian); } }
public void Init() { // make the database used to accelerate proximity queries cyclePD = -1; NextPD(); // create the specified number of Pedestrians population = 0; for (int i = 0; i < 10; i++) { population++; Pedestrian pedestrian = new Pedestrian(pd,path); pedestrian.Reset(); world.AddObject(ObjectCreator(pedestrian)); crowd.Add(pedestrian); } }