Skip to content

format

typescript
CapsuleCollider.capsuleCollderDirection

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

reture

typedescription
CapsuleCollderDirectionThe orientation of the capsule collider.

code example

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