Legacy Documentation: Version 5.2
Circle Collider 2D
Polygon Collider 2D

Box Collider 2D

Switch to Scripting

The Box Collider 2D component is a collider for use with 2D physics. The collider’s shape is a rectangle with a given position, width and height in the local coordinate space of a Sprite. Note that the rectangle is axis-aligned, ie, its edges are parallel to the X or Y axes of local space.

Property: Function:
Material A physics material that determines properties of collisions, such as friction and bounce.
Is Trigger Does the collider behave as a trigger?
Used by Effector Whether the collider is used by an attached effector or not.
Offset The local offset of the collider geometry.
Size The size of the box in local space units.
Circle Collider 2D
Polygon Collider 2D
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961