This section describes how the direction of movement is determined.
At each simulation step, a person’s movement direction is chosen in two stages:
- Identification of possible movement directions.
- Selection of one direction** in which the person will move.
Determining Possible Movement Directions
This process is carried out during the evacuation situation analysis for each individual and consists of the following sub-steps:
-
Several potential directions in which the person can move are selected.
-
For each direction, the following are determined: the distance to the nearest visible person, the distance to the nearest visible obstacle, and the shortest direction to the current boundary.
-
For each direction, four dimensionless factors are calculated, representing:
- How much this direction deviates from the shortest path to the exit.
- How much this direction deviates from the person’s current direction of movement.
- How close other people are in this direction.
- How close obstacles are in this direction.
-
For each direction, a probability is calculated that the person will choose this direction—defined as the product of all four factors.
-
If necessary, each direction is adjusted to avoid collisions with obstacles.
-
For each direction, the destination point is calculated — where the person would end up if they moved in that direction.
It should be noted that at this stage, potential collisions with other people are not checked.
Selecting a Single Direction of Movement
This process is carried out during the people movement stage and consists of the following sub-steps:
- The direction with the highest probability is selected.
- The selected direction is checked for collisions with people and obstacles.
- If no collisions are detected, the person moves in the chosen direction. Otherwise, the next untested direction with the highest remaining probability is selected.
- If no direction can be selected (i.e., all directions would result in collisions with people or obstacles), the person remains in place and rotates to face the direction with the highest probability.