CapsuleCollider2D
A capsule-shaped primitive collider.
Read time 9 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
- Inherits from: Collider2D
public sealed class CapsuleCollider2D : Collider2D
Remarks
Capsules are boxes with a semi-circle at each end.
Properties
Property | Description |
|---|---|
| direction | The direction that the capsule sides can extend. |
| size | The width and height of the capsule area. |
Inheritance
Inherited Members
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |