new PolygonCollider(vertexs)
PolygonCollider - Creates a new Collider
Parameters:
| Name | Type | Description |
|---|---|---|
vertexs |
Array.<Vector2> | The array of Vertexs |
Extends
- BaseCollider
Members
calculateNormals
BoxCollider.prototype.calculateNormals - Calculates the normals for each face of the polygon