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 collideswith() #224

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

Polygon collideswith() #224

wants to merge 1 commit into from

Conversation

itzpr3d4t0r
Copy link
Member

@itzpr3d4t0r itzpr3d4t0r commented Jul 23, 2023

Closes #173.

This is just a first implementation that supports:

  • Lines
  • Circles
  • Vec2(s) / tuples / lists / sequences of len 2

It's a bit different from the other collideswith since it supports a only_edges param. it only works with shapes and points.
This PR also fixes an issue with polygon collideline tests, which effectively didn't test the function but its line counterpart collidepolygon.

@itzpr3d4t0r itzpr3d4t0r added type:new_api Adds new functionalities to the project submodule:polygon submodule:collisions labels Jul 23, 2023
@itzpr3d4t0r itzpr3d4t0r marked this pull request as ready for review January 2, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
submodule:collisions submodule:polygon type:new_api Adds new functionalities to the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Polygon collideswith()
1 participant