VelcroPhysics icon indicating copy to clipboard operation
VelcroPhysics copied to clipboard

Add collinear points check to PolygonShape

Open Genbox opened this issue 8 years ago • 0 comments

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.

Genbox avatar Apr 09 '17 02:04 Genbox