We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetPolygonColliderVertices2D()
Vector2[] GetPolygonColliderVertices2D(PolygonCollider2D collider)
This will return an array of vertices that define the shape of collider.
collider
the collider to get the vertices of
Vector2[]
an array of vertices that define the shape of collider
vertices in adjacent indexes define an edge