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

Add collinear points check to PolygonShape #14

Open
Genbox opened this issue Apr 9, 2017 · 0 comments
Open

Add collinear points check to PolygonShape #14

Genbox opened this issue Apr 9, 2017 · 0 comments

Comments

@Genbox
Copy link
Owner

Genbox commented Apr 9, 2017

From the point of the physics engine itself, collinear points are useless. ALL points have to get checked at least once in the narrow phase, so we would like the number of vertices of a polygon to be as low as possible. This proposal is to add a collinear check on vertices when creating polygons.

It should be configured using Settings so that a user can decide to disable the check, which would be enabled by default.

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