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

Pathfinder algorithm avoids large triangles. #12

Open
Jeff425 opened this issue Jul 12, 2023 · 0 comments
Open

Pathfinder algorithm avoids large triangles. #12

Jeff425 opened this issue Jul 12, 2023 · 0 comments

Comments

@Jeff425
Copy link

Jeff425 commented Jul 12, 2023

We have discussed this before @TheGrimsey but due to the pathfinder algorithm deciding the cost of a triangle based on mid-point to mid-point the algorithm will avoid large triangles in the navmesh if possible.

This can lead to suboptimal paths being chosen, the paths will still work but it will be obvious that there is a better path.

Below is an example of an agent choosing a much longer route due to the short route containing two large triangles

2023-07-12.15-03-04.mp4
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