Skip to content

GetColliderVertices2D

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

GetColliderVertices2D()

Vector2[] GetColliderVertices2D(Collider2D collider)

Description

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

Note: If the exact Collider2D type is known, it is better to use the corresponding function rather than this one.

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