Skip to content

Wrong condition when looking for neighbors? #6

@Jupihawx

Description

@Jupihawx

Hi. Thanks for the work.

I do notice something a bit strange in the method "Pathfinding3D/Assets/Pathfinding/Scripts/WorldManager.cs".

In the neighbors checking condition, you check if the considered point is not itself through the line :
if (i == p && g == q && k == g)

I believe this is incorrect and should be :

if (p == 0 && q == 0 && g == 0)

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions