用户工具

站点工具


侧边栏

script:unityengine:classes:edgecollider2d:edgecollider2d

EdgeCollider2D 2D边碰撞器

class in UnityEngine / Inherits from: Collider2D

Description 描述

Collider for 2D physics representing an arbitrary set of connected edges (lines) defined by its vertices.

用于2D物理碰撞器,表示由定点列表定义的任意一组连接的边(线)。

See Also: BoxCollider2D, CircleCollider2D, PolygonCollider2D.

Variables 变量

edgeCountGets the number of edges.
获取边数。
pointCountGets the number of points.
获取点数。
pointsGet or set the points defining multiple continuous edges.
获取/设置该点列表定义多条连续的边。

Public Functions 共有函数

ResetReset to a single edge consisting of two points.
重置两点组成的一条边。
script/unityengine/classes/edgecollider2d/edgecollider2d.txt · 最后更改: 2016/08/02 05:36 (外部编辑)