기술 자료

Unity Engine

Unity Engine

CapsuleCollider2D

A capsule-shaped primitive collider.
읽는 시간 9분최근 업데이트: 한 달 전

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.