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

Enhancement: Find a path through closed doors #19

Open
Garsondee opened this issue Jan 31, 2024 · 1 comment
Open

Enhancement: Find a path through closed doors #19

Garsondee opened this issue Jan 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Garsondee
Copy link

Would it be possible to add an option which works out the shortest path but ignores the presence of closed doors when working that distance out? I want to try and make a pathfinding system which allows tokens to move to a closed door, open it, move through, and then close it behind them.

@manuelVo
Copy link
Owner

Your module idea sounds pretty fun and your proposal is certainly doable. It should be extremely simple to build into the gridless routing (it's probably enough to change a few lines of code). I'll have to look at how much would need to be changed to make it work in the gridded routing, since that component is likely to rely on foundry for collision testing. If so, then there would need to be a way in foundry to perform a collision check that ignores closed doors - otherwise a big chunk of code would need to be reimplemented to make this work.

I guess whether I'll implement your enhancement idea depends on how much code that could be re-used from foundry has to be re-implemented in routinglib to make it work.

@manuelVo manuelVo added the enhancement New feature or request label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants