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.

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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With