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

Tile scale doesn't affect polygon size unless offset is also set #68

Open
Hannessa opened this issue Aug 7, 2023 · 0 comments
Open

Comments

@Hannessa
Copy link

Hannessa commented Aug 7, 2023

I have an issue with tile scale not affecting polygon size unless I also add an offset. I think it's because this if-condition uses && instead of ||
https://github.com/mikewesthad/navmesh/blob/7606d96bac0b374329a11ff9c071cf7c40cd9755/packages/phaser-navmesh/src/phaser-navmesh-plugin.ts#L158C5-L163C6

As a workaround I now just move my tilemap layer slightly using layer.setPosition(0.01, 0.01) so that it has an offset.

Thanks for an otherwise great library!

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