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. Unity's CapsuleCollider Documentation
Properties
Defines the center position of the CapsuleCollider relative to the GameObject, adjustable to move the Collider from the GameObject's center. Unity's CapsuleCollider.center Documentation
Sets the orientation axis of the Collider's height, with values "0" for X-axis, "1" for Y-axis, and "2" for Z-axis. Unity's CapsuleCollider.direction Documentation
Adjusts the vertical dimension of the CapsuleCollider, affecting its height. Unity's CapsuleCollider.height Documentation
Controls the size of the CapsuleCollider by adjusting its radius, allowing expansion or contraction. Unity's CapsuleCollider.radius Documentation
Updated 12 days ago