M_PurpleKingdomGames_Core_Pathfinding_Seekers_AStar_Seek - PurpleKingdomGames/CoreLibs GitHub Wiki

AStar.Seek Method

Seek a target in a 2-dimensional grid

Namespace: PurpleKingdomGames.Core.Pathfinding.Seekers
Assembly: PurpleKingdomGamesCore (in PurpleKingdomGamesCore.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static Point2D[] Seek(
	GridNode2D[,] grid,
	Point2D start,
	Point2D target
)

Parameters

 

grid
Type: PurpleKingdomGames.Core.Pathfinding.GridNode2D[,]
The grid to search
start
Type: PurpleKingdomGames.Core.Point2D
The start point to seek from
target
Type: PurpleKingdomGames.Core.Point2D
The target to seek to

Return Value

Type: Point2D[]
An array of grid nodes needed to pass through to get to the target

Exceptions

 

Exception Condition
ArgumentOutOfRangeException If the start or target are out of range of the grid

See Also

Reference

AStar Class
PurpleKingdomGames.Core.Pathfinding.Seekers Namespace

⚠️ **GitHub.com Fallback** ⚠️