I have question about pedestrian area. I created rect. node, which is restricted to pedestrian an related with a function of traffic light.-I choose call of close() function for that [CrossingArea.setOpen(currentPhaseIndex == 2); means RED for cars.
pedestrian walks through. its ok. But some of them stays inside the area when traffic lights turns green. I added some virtual light for prevent this situation. i used on enter section and wrote that if (self.contains(agent)) stopLine11.setSignal(SIGNAL_RED);
but i couldn't the exit side. My virtual light always RED and exit section didnt except following code if (self.contains(agent) == 0) stopLine11.setSignal(SIGNAL_GREEN);