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

support non-rectangular entity sizes in distance calculations #144

Open
Grokmoo opened this issue Dec 28, 2019 · 0 comments
Open

support non-rectangular entity sizes in distance calculations #144

Grokmoo opened this issue Dec 28, 2019 · 0 comments
Milestone

Comments

@Grokmoo
Copy link
Owner

Grokmoo commented Dec 28, 2019

In distance_finder and in the dist_squared method in path_finder, it currently assumes all targets are rectangular and uses a fast method to check nearest point to axis aligned rectangle distance.

If a prop or transition was non square, this shouldn't cause much of a problem, but it would be a bigger issue with actors in combat since you would be able to hit the "corners" of entities even if the corner is not part of their size definition.

@Grokmoo Grokmoo added this to the Future milestone Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant