never

    The pathfinding algorithm will ignore all diagonals and the way will be always orthogonal.

    AStarGrid2D.swift:55
    case never

    Other cases

    • case always

      The pathfinding algorithm will ignore solid neighbors around the target cell and allow passing using diagonals.

    • case atLeastOneWalkable

      The pathfinding algorithm will avoid using diagonals if at least two obstacles have been placed around the neighboring cells of the specific path segment.

    • case onlyIfNoObstacles

      The pathfinding algorithm will avoid using diagonals if any obstacle has been placed around the neighboring cells of the specific path segment.

    • case max

      Represents the size of the DiagonalMode enum.