decomposePolygon2D
decomposePolygon2D(
vertices):PolygonDecomposition
Defined in: physics/polygonDecompose2D.ts:265
The convex pieces vertices collides as. A ring already convex and within the
cap is ONE piece and the same points, so the common shape costs nothing and
keeps the identity an author drew.
Parameters
Section titled “Parameters”vertices
Section titled “vertices”readonly Vec2[]