format
typescript
CapsuleCollider.heightclass: CapsuleCollider
description
The height of the capsule collider.
This value is used to define the height of the capsule collider, which is the height of the central cylindrical portion of the capsule.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The height of the capsule collider. |
code example
typescript
let obj = new GameObject();
let com = obj.AddComponent<CapsuleCollider>(CapsuleCollider);
com.height;