Legacy Documentation: Version 5.6 (Go to current version)
Collider 2D
Box Collider 2D
Other Versions

Circle Collider 2D

Switch to Scripting

The Circle Collider 2D class is a collider for use with 2D physics. The collider’s shape is a circle with a defined position and radius in the local coordinate space of a Sprite.

Property: Function:
Density Changing the density here affects the mass of the GameObject’s associated Rigidbody 2D. If you set the value to zero, its associated Rigidbody 2D ignores the Circle Collider 2D for all mass calculations, including centre of mass calculations. Note that this option is only available if you have selected Use Auto Mass in an associated Rigidbody 2D.
Material A physics material that determines properties of collisions, such as friction and bounce.
Is Trigger Check this if you want the Circle Collider 2D to behave as a trigger.
Used by Effector Check this if you want the Circle Collider 2D to be used by an attached Effector 2D.
Offset The local offset of the Circle Collider 2D geometry.
Radius Radius of the circle in local space units.
Collider 2D
Box Collider 2D
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961