Table of Contents

Table of Contents

FlexScript Class - AStar.Direction

AStar.Direction

Description

An enumeration of integer values associated with four A* travel directions.

The AStar.Direction values are used in AStar.Cell when querying directional travel capabilities and adjacent cells.

Static Properties

Down = 4 The "down" direction, describing travel in the negative y direction.
Left = 2 The "left" direction, describing travel in the negative x direction.
Right = 1 The "right" direction, describing travel in the positive x direction.
Up = 3 The "up" direction, describing travel in the positive y direction.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

AStar.Direction.Down

static readonly int Down = 4

Description

The "down" direction, describing travel in the negative y direction.

Do no remove, this fixes the anchor on doc.flexsim.com

AStar.Direction.Left

static readonly int Left = 2

Description

The "left" direction, describing travel in the negative x direction.

Do no remove, this fixes the anchor on doc.flexsim.com

AStar.Direction.Right

static readonly int Right = 1

Description

The "right" direction, describing travel in the positive x direction.

Do no remove, this fixes the anchor on doc.flexsim.com

AStar.Direction.Up

static readonly int Up = 3

Description

The "up" direction, describing travel in the positive y direction.