polygonComposeShape

Creates a Compose Shape that matches a PhysicsShape.Polygon.

The mapping uses the same local-origin and vertex-space rules as the physics fixture adapter, so the visual clip aligns with the collision geometry for both normalized and pixel-based polygons.

Parameters

polygon

Polygon descriptor to render as a Compose shape.