1
votes

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

1
Are your people Pedestrians? I've heard -- although haven't confirmed -- that it's possible to say how much space Pedestrians take up, which makes them act as solid objects that others can't pass through. Is it possible to make the vehicle another Pedestrian?Dylan Knowles
@DylanKnowles Thanks for your reply, but the problem persists.Extreme Coders
I found that making your pedSource and vehicleSource go into the same "go to" causes them to bounce off one another. It's not perfect, but maybe it'll do what you're after?Dylan Knowles

1 Answers

1
votes

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.