This asset include:
1. A* pathfinding algorithm
2. grid map block area edit
3. Game view Camera Control(same to Scene view)
4. Player Move, path mark
- A* pathfinding algorithm:
Heuristic algorithm include: Manhattan, MaxDXDY, DiagonalShortCut, Euclidean, EuclideanWithG, EuclideanNoSQR. Use heapTree to push/pop Open Node.
- grid map block edit:
The block area of this grid map can be edited in 'Scene View'.
you can add/remove block grid in grid map.
- Game view Camera Control:
It simulate “Scene view” camera control in “Game view”.
- Player Move, path mark:
Click in grid map, If the straight path does not pass the block grid,
Player will move directly to the target position, Otherwise pathfinding is performed.
Before the player moves, The path node on the same line will be merged.
The path is marked with some green square, and the grid involved in pathfinding calculation are marked by blue.