The desired direction of a pedestrian is defined following different algorithms: In the section of the chosen model the direction strategy should be specified as follows:

 <exit_crossing_strategy>num</exit_crossing_strategy>


with num a positive integer.

The majority of the strategies define how a pedestrian crosses a line $L = [P_1, P_2]$. Possible values are:

1. The direction of the pedestrian is towards the middle of $L$ ($\frac{P_1+P2}{2}$)

2. The direction is given by the nearest point on $L$ to the position of the pedestrian. $L$ is shorten by 20 cm.

3. If the nearest point of the pedestrian on the segment line $L$ is outside the segment, then chose the middle point as target. Otherwise the nearest point is chosen.

4. This strategy is still beta. It assumes that the simulation scenario has no loops or U-shaped corridors. Pedestrians, target he exit, even if it is outside their visibility range. In case of intersection with walls or obstacles, the temporary direction is rotated away from the wall.

5. Does not exist.

6-9. Strategies using floor fields (ff) (vector fields); one ff per target (door, line, …)

<img src="/jpscore/img/transformFF.png" width="500" height="500" />
xml
<model_parameters>
<exit_crossing_strategy>9</exit_crossing_strategy>
<delta_h>0.0625</delta_h>
<wall_avoid_distance>0.8</wall_avoid_distance>
<use_wall_avoidance>true</use_wall_avoidance>
</model_parameters>


For more details see this [talk](https://fz-juelich.sciebo.de/index.php/s/s1ORGTUssCsHDHC) and the corresponding [thesis](https://fz-juelich.sciebo.de/index.php/s/VFnUCH2gtz1mSoL).

(__do not use in multi-storage buildings__)

• 7: (experimental)

• 8: This strategy uses a floor field collection for each room.

Thus the floor fields are smaller but cannot steer to targets in a different room.

The router must provide intermediate targets for every agent, the target being in the same room.

The projection of the room onto the ($x,\, y$)-plane must be non-overlapping!

• 9: This strategy uses a floor field collection for each subroom. (broken)

Thus the floor fields are again smaller but cannot steer to targets in a different subroom.

The router must provide intermediate targets for every agent, that target being in the same subroom.

The projection of the room onto the ($x,\, y$)-plane must be non-overlapping!