Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtain the matrix from the pathfind grid #212

Open
Bingdom opened this issue Jun 20, 2023 · 0 comments
Open

Obtain the matrix from the pathfind grid #212

Bingdom opened this issue Jun 20, 2023 · 0 comments

Comments

@Bingdom
Copy link

Bingdom commented Jun 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant