Optional
options: Partial<PolygonColliderOptions>Ignores collisions with layers in the array
Collision layer
X-Y axis offset
TRUE if this collider interact with rigid bodies
Edges rotation in radians
Collection of 2d vectors representing the vertices of the collider
Polygon shaped Collider for 2d collisions. Only convex polygons are allowed.
Example