Version: 2017.2
Polygon Collider 2D
Capsule Collider 2D

Edge Collider 2D

The Edge Collider 2D component is a Collider for use with 2D physics. The Collider’s shape is defined by a freeform edge made of line segments, so you can adjust it to fit the shape of the Sprite graphic with great precision. Note that this Collider’s edge need not completely enclose an area (unlike the similar Polygon Collider 2D), and for example can be a straight line or an L-shape.

Propiedad Función
Material Un Physics Material que determina las propiedades de las colisiones, tales como la fricción y el rebote.
Is Trigger Marque esta casilla si quiere que el Collider se comporte como un trigger.
Used by Effector Si el Collider se utiliza por un effector adjunto o no.
Offset El desplazamiento local de la geometría del Collider.
Edge Radius Controla un radio alrededor de los bordes, de modo que los vértices son circulares. Esto da como resultado un Collider 2D más grande con esquinas convexas redondeadas. El valor predeterminado para esta configuración es 0 (sin radio).
Points Información no editable acerca de la complejidad del collider generado.

Detalles

To edit the polyline directly, hold down the Shift key while you move the mouse over an edge or vertex in the Scene view. To move an existing vertex, hold down the Shift key and drag that vertex. To create a new vertex, hold down the Shift key and click where you want the vertex to be created. To remove a vertex, hold down the Ctrl (Windows) or Cmd (macOS) key and click on it.

To hide the outline of the 2D move Gizmo while editing the Collider, click the fold-out arrow on the Sprite Renderer component in the Inspector to collapse it.

Polygon Collider 2D
Capsule Collider 2D
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961