Skip to content

GetPolygonColliderVertices2D

Stone Hobbs edited this page Jun 27, 2022 · 1 revision

GetPolygonColliderVertices2D()

Vector2[] GetPolygonColliderVertices2D(PolygonCollider2D collider)

Description

This will return an array of vertices that define the shape of collider.

Parameters

collider

the collider to get the vertices of

Return

Vector2[]

an array of vertices that define the shape of collider

vertices in adjacent indexes define an edge

Clone this wiki locally