Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CapsuleCollider2D

A capsule-shaped primitive collider.
Read time 9 minutesLast updated 4 days ago

Definition

public sealed class CapsuleCollider2D : Collider2D

Remarks

Capsules are boxes with a semi-circle at each end.

Properties

Property

Description

directionThe direction that the capsule sides can extend.
sizeThe 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.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.