79278179

Date: 2024-12-13 11:44:39
Score: 3
Natty:
Report link

This post is hidden. It was deleted yesterday by starball, talex, Adrian Mole. 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);

Reasons:
  • Blacklisted phrase (1.5): I have question
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: babafingo