Search code examples
anylogic

How to implement the pause and turn of the transporter in AnyLogic, like in PlantSimulation


How to implement the pause and turn of the transporter in AnyLogic, like in PlantSimulation enter image description here

I expect to use it normally in MoveByTransporter. I have tried setting a node with a very small radius and limiting the speed of transporter within that node, but it seems to have no effect. enter image description here The transporter is still traveling at its original speed.


Solution

  • Use the TransporterControl block and its "on enter node" code. This is executed for every transporter on the same agent type as the block whenever it enters a node.

    For your case, reduce the speed as needed: enter image description here