I have operators in an agent system and A* system going through a path of planes. The planes change colours after a certain time. The operators change speeds according to the color they pass through.
How do I make the operators avoid a plane entirely or let them complete their journey through a plane before avoiding it completely, once it changes to a certain color?
(Bright Orange, Color(1, 0.25, 0, 0.5), as seen in their custom code triggers)
This color change occurs at
t = 181 for plane: F8, F9, G9, G10
t = 226 for plane: E5
t = 264 for plane: E6, F7
I have tried implementing a social force behavior to no success as the operators seem to zip pass the queues and get stuck past the A* dividers. I cannot test the repulsive force behaviour for this as well as the operators do not get to point of being in proximity with the necessary planes.
I have also tried placing an object as an obstacle (at 0,0,0) and placing it on top of the planes at the stated times via coding them in the triggers with "vec3(x, y, z)", to ensure the operators find an alternate path but they continue to go through without respecting the new object in the A* system. I also tried placing the object at the plane's locations first, but once they are moved elsewhere, the operators still recognise an obstacle in the path.
AgentSystemExample - FlexSim Answers.fsm