PolygonCollider2D
class in UnityEngine · UnityEngine.Physics2DModule · inherits from Collider2D
In Tassix
Paths of points in local space; concave paths are split into convex pieces.
Properties 3
bool autoTiling { get; set; }int pathCount { get; set; }Vector2[] points { get; set; }The first path's points.
Methods 4
void CreatePrimitive(int sides)void CreatePrimitive(int sides, Vector2 scale)void CreatePrimitive(int sides, Vector2 scale, Vector2 offset)A regular polygon of sides sides.
int GetTotalPointCount()Not in Tassix yet 2
CreateFromSprite useDelaunayMesh