FXGL icon indicating copy to clipboard operation
FXGL copied to clipboard

AStar pathfinder support 8 directions move, include diagonal cell

Open NanaLearnCoding opened this issue 3 years ago • 1 comments

i find AStarMoveComponent moveToCell only support 4 directions (up down left right),so when the cell moving, it looks a little stiff. the code show that: Note: returned cells are in the grid (i.e. bounds are checked). Diagonal cells are not included. The order is left, up, right, down. so, could it support 8 directions move?
thank u

NanaLearnCoding avatar Nov 23 '22 07:11 NanaLearnCoding

Currently no. Though it would be a good idea. Thanks for the suggestion.

AlmasB avatar Nov 24 '22 11:11 AlmasB

Link to #1339

AlmasB avatar Feb 18 '24 20:02 AlmasB