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

Polygon #255

Open
spydon opened this issue Dec 21, 2021 · 4 comments
Open

Polygon #255

spydon opened this issue Dec 21, 2021 · 4 comments

Comments

@spydon
Copy link
Collaborator

spydon commented Dec 21, 2021

There are currently many shapes included in vector_math, but an important one is missing; the polygon.
The general polygon is of course a bit tricky (expensive) to do collision detection on, but maybe only convex polygons could be supported for example?

This would be of tremendous help to us at Flame, which is one of the most popular packages using vector_math (even the most popular in terms of GitHub stars). We could help to implement it, if there are no resources that can be spared from your side, but in that case we'd need to come up with a clear plan together first.

Thanks for a great package!

@shtse8
Copy link

shtse8 commented Feb 24, 2023

Any updates on providing polygon shape implemented in vector2_math?

@johnmccutchan
Copy link
Collaborator

@spydon What sort of API are you looking for? Hit testing? Collision detection?

@spydon
Copy link
Collaborator Author

spydon commented Feb 24, 2023

@johnmccutchan the more the better of course, but on par with the other shapes would be great.

@johnmccutchan
Copy link
Collaborator

I would accept a Polygon contribution

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

3 participants