class in UnityEngine / Inherits from: Collider
A capsule-shaped primitive collider.
胶囊形状的碰撞器。
Capsules are cylinders with a half-sphere at each end.
胶囊是圆柱体在两端加上半球。
See Also: BoxCollider, SphereCollider, PhysicMaterial, Rigidbody.
center | The center of the capsule, measured in the object's local space. 以对象局部坐标空间计算的胶囊体的中心。 |
direction | The direction of the capsule. 胶囊体的方向。 |
height | The height of the capsule meased in the object's local space. 以局部坐标空间计算的胶囊体的高度。 |
radius | The radius of the sphere, measured in the object's local space. 以局部坐标空间计算的胶囊球体的半径。 |