# Direction strategies

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:

- The direction of the pedestrian is towards the middle of $L$ ($\frac{P_1+P2}{2}$)
- The direction is given by the nearest point on $L$ to the position of the pedestrian.
- Same as 2, only the line $L$ is shorten by 20 cm.
- 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. - This strategy is still beta. It assumes that the simulation scenario has no loops or U-shaped corridors. Pedestrians, are targets towards the exit, even if it is outside their visibility range. In case of intersection with walls or bstacles, the temporary direction is rotaions away from the wall.
- This strategy does use a floor field rather than heading towards a point on a line segment. For more details see Graf2015.

Most of the aforementioned strategies were discussed in Chraibi2011.