CapsuleCollider
Inherits from: Collider
CapsuleCollider is a collider component in Unity shaped like a capsule, suitable for elongated spherical objects where SphereCollider and BoxCollider aren't ideal fits. It detects collisions between GameObjects, allowing scripted reactions to these events. CapsuleColliders can be resized and repositioned to match GameObject shapes accurately.
Properties
Defines the center position of the CapsuleCollider relative to the GameObject, adjustable to move the Collider from the GameObject's center.
Controls the size of the CapsuleCollider by adjusting its radius, allowing expansion or contraction.
Adjusts the vertical dimension of the CapsuleCollider, affecting its height.
Sets the orientation axis of the Collider's height, with values "0" for X-axis, "1" for Y-axis, and "2" for Z-axis.
Updated 6 months ago