format
typescript
CapsuleCollider.capsuleCollderDirectionclass: CapsuleCollider
description
The orientation of the capsule collider.
This value is used to specify the primary direction of the capsule collider. The primary direction of the capsule collider is the direction of its length.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
CapsuleCollderDirection | The orientation of the capsule collider. |
code example
typescript
let obj = new GameObject();
let com = obj.AddComponent<CapsuleCollider>(CapsuleCollider);
com.capsuleCollderDirection;