Skip to content

format

typescript
CapsuleCollider.height

class: 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_nametypedescription

reture

typedescription
numberThe height of the capsule collider.

code example

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