The Circle Collider 2D class is a collider for use with 2D physics. As its name implies, the collider’s shape is a circle with a given position and radius in the local coordinate space of a Sprite.
Property: | Function: |
---|---|
Density | Changing the density here affects the mass of the object’s associated Rigidbody. Set the value to zero and its associated Rigidbody ignores the Collider for all mass calculations, including centre of mass calculations. NOTE: This option is only available if you have selected Use Auto Mass in an associated Rigidbody. |
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. |
Radius | Radius of the circle in local space units. |