VelcroPhysics
VelcroPhysics copied to clipboard
Add collinear points check to PolygonShape
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.