format
typescript
AimIK.axisclass: AimIK
description
Used to specify the axis of rotation when facing a target.
This value is typically used to control the axis of rotation for parts such as the head, body, or gun of a character or object when facing a target.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | The axis of rotation when facing a target. |
code example
typescript
let obj = new GameObject();
let aimIk = obj.AddComponent<AimIK>(AimIK);
aimIk.axis;