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

Use fmod for navigation mesh border size warning #90602

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Apr 12, 2024

Uses fmod for checking that navigation mesh border_size matches the cell_size as a multiple of cell size is also valid.

Also removes is_equal_approx() in this case as having the numbers not match exactly will cause edge seams on very small cell sizes which goes against the idea of using a border size in the first place.

@smix8 smix8 added this to the 4.3 milestone Apr 12, 2024
@smix8 smix8 force-pushed the bsfmod branch 2 times, most recently from 8283b23 to 85f0b97 Compare April 12, 2024 23:56
Uses fmod for checking that navigation mesh border size matches the cell size as a multiple of cell size is also valid.
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this code but it looks good to me, and it meets the stated goals in the PR description.

@akien-mga akien-mga merged commit 3a57f10 into godotengine:master Apr 13, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@smix8 smix8 deleted the bsfmod branch April 13, 2024 10:08
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.

3 participants