Hi, the minimum path corridor width is calculated from the vehicle's largest dimension (length or width) multiplied by two, because the vehicle can drive right along the edge of the path line, plus the clearance buffer (which is now configurable).
Additionally, due to how the Factorio engine handles pathfinding with the bounding square we provide, the game does not take the movement direction into account and does not rotate this square - on diagonal paths, the minimum corridor width expands further by the square's diagonal (*1.41).
Calculation example for a regular car (max side = 2.0 tiles, default buffer = 2.0):
- Vertically & horizontally:
(2.0 × 2) + 2.0 = 6.0 tiles.
- Diagonally (accounting for the square's diagonal × 1.41):
6.0 × 1.41 ≈ 8.5 tiles.