Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic Obstacles in AnyLogic

I am modelling a crowd simulation in AnyLogic where the people throng around a vehicle which moves in time. Since the vehicle is an obstacle, pedestrians should not get within it.

As walls are treated as obstacles in AnyLogic, I decided to use walls for defining the vehicle.

However the problem is walls are static elements and their position cannot be changed at run-time. So is there any solution or a viable alternative for the problem described ?

UPDATE

If I model the vehicle as a pedestrian instead and use a large diameter, peds still manage to get inside it. Moreover, since vehicle is now a type of pedestrian its movement is not straight, and deviates from its path due to collision with others peds.

Image attached

like image 731
Extreme Coders Avatar asked Jun 26 '26 18:06

Extreme Coders


1 Answers

If you make pedSource and vehicleSource both flow into a single pedGoTo, the Agents they produce will bounce off one another regardless of their type.

like image 71
Dylan Knowles Avatar answered Jun 30 '26 10:06

Dylan Knowles



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!