Skip to content

AStar pathfinder support 8 directions move, include diagonal cell #1213

@NanaLearnCoding

Description

@NanaLearnCoding

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:new featureAdding a feature that isn't currently present

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions