class in UnityEngine / Inherits from: Collider2D
Collider for 2D physics representing an arbitrary set of connected edges (lines) defined by its vertices.
用于2D物理碰撞器,表示由定点列表定义的任意一组连接的边(线)。
See Also: BoxCollider2D, CircleCollider2D, PolygonCollider2D.
edgeCount | Gets the number of edges. 获取边数。 |
pointCount | Gets the number of points. 获取点数。 |
points | Get or set the points defining multiple continuous edges. 获取/设置该点列表定义多条连续的边。 |
Reset | Reset to a single edge consisting of two points. 重置两点组成的一条边。 |