Skip to content

prevent string pulling angle larger than 180 in dtNavMeshQuery::findStraightPath #741

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Guokj-Git
Copy link

This commit try to prevent inappropriate turning point by preventing the angle formed by portaleft, portalApex and portalRight from becoming larger than 180 degree during the string pulling procedure.
The variable apexCrossTile is used to reduce unneccessary call of the method dtTriArea2D.

Detailed reason for this commit is discussed in #735.

@grahamboree grahamboree self-assigned this Dec 29, 2024
Mauler125 added a commit to Mauler125/r5sdk that referenced this pull request Feb 28, 2025
Fix was taken from pull request recastnavigation/recastnavigation#741 but with a minor optimization to avoid decoding tile indices again after angle fixup is already pending.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants