M_PurpleKingdomGames_Core_Pathfinding_Seekers_AStar_Seek - PurpleKingdomGames/CoreLibs GitHub Wiki
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)
C#
public static Point2D[] Seek(
GridNode2D[,] grid,
Point2D start,
Point2D target
)
- 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
Type: Point2D[]
An array of grid nodes needed to pass through to get to the target
Exception | Condition |
---|---|
ArgumentOutOfRangeException | If the start or target are out of range of the grid |
AStar Class
PurpleKingdomGames.Core.Pathfinding.Seekers Namespace