Skip to content

Obtain the matrix from the pathfind grid #212

Open
@Bingdom

Description

@Bingdom

Hi,

I'm currently trying to put the pathfinder onto a worker

We can't copy certain properties like functions over. So something like .clone() will not work

I was wondering if I instead could just pass the grid matrix to the worker.

According to Object.keys(grid), it gave me a nodes key. Unfortunately, It's just a 1D array of positions and walkable areas. Not translatable for the 2D array needed for the grid initialization- which would need to be done manually, which could incur additional overhead.
Would be better if the library maintained at least both

I had a look at the source code and this holds true.

It's unfortunate that this project is dead since something like this would be really great.

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