Hi Marc-Oliver
The agent cannot change the direction of movement in any cell. The absolute direction/orientation of the agent changes at curves, switches. The only cell type where the agent changes direction of movement relative to the rail is at the dead-end cell. If the agent moves forward when facing the dead-end it will be turned around 180° and exits the cell where it entered the cell.
Hope this helps
best regards
Erik