question

Zakir avatar image
0 Likes"
Zakir asked Natalie White commented

How do you make operators avoid certain objects once they change state?

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



FlexSim 23.1.3
proximity agent systemsocial force
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Natalie White avatar image Natalie White commented ·

Hi @Zakir, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

If they can't pass through that area you can add it as a dynamic barrier. There's an example of how this works for Astar in this example model.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.