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. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information