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

Feature request: Avoiding ZigZag #68

Open
Torsten85 opened this issue Dec 4, 2018 · 1 comment
Open

Feature request: Avoiding ZigZag #68

Torsten85 opened this issue Dec 4, 2018 · 1 comment

Comments

@Torsten85
Copy link

Hey,
just found this library and its really great!

Would it be possible to add an additional cost for changing direction? This way I could avoid the zig zag (which is of course the correct shortest path).

The problem is explained by another user on stack overflow: https://stackoverflow.com/questions/26302126/efficient-path-finding-algorithm-avoiding-zigzags

@MathiasGilson
Copy link

Have you tried calling easystar.enableDiagonals(); ?

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

2 participants