Skip to content

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.

readonly Vec2[]

PolygonDecomposition