Version: 2017.3 (switch to 2017.4)
Box Collider
Character Controller
Other Versions

Capsule Collider

Switch to Scripting

The Capsule Collider is made of two half-spheres joined together by a cylinder. It is the same shape as the Capsule primitive.

Properties

Property: Function:
Is Trigger If enabled, this Collider is used for triggering events, and is ignored by the physics engine.
Material Reference to the Physics Material that determines how this Collider interacts with others.
Center The position of the Collider in the object’s local space.
Radius The radius of the Collider’s local width.
Height The total height of the Collider.
Direction The axis of the capsule’s lengthwise orientation in the object’s local space.

Details

You can adjust the Capsule Collider’s Radius and Height independently of each other. It is used in the Character Controller and works well for poles, or can be combined with other Colliders for unusual shapes.

A standard Capsule Collider
A standard Capsule Collider
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答