Table of Contents

Enum AStarGrid2D.DiagonalModeEnum

Namespace
Godot
Assembly
GodotSharp.dll
public enum AStarGrid2D.DiagonalModeEnum : long

Fields

Always = 0

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

AtLeastOneWalkable = 2

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

Max = 4

Represents the size of the AStarGrid2D.DiagonalModeEnum enum.

Never = 1

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

OnlyIfNoObstacles = 3

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