Skip to content

CapsuleCollider

extends Collider

The CapsuleCollider class is used to manage capsule colliders.

typescript
 let obj = new GameObject();
 let com = obj.AddComponent<CapsuleCollider>(CapsuleCollider);

成员变量

CapsuleCollider.center : Vector3
The center point position of the capsule collider.
CapsuleCollider.radius : number
The radius of the capsule collider.
CapsuleCollider.height : number
The height of the capsule collider.
CapsuleCollider.capsuleCollderDirection : CapsuleCollderDirection
The orientation of the capsule collider.