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

Box Collider 2D

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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