Skip to content

format

typescript
AimIK.axis

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

reture

typedescription
Vector3The axis of rotation when facing a target.

code example

typescript
let obj = new GameObject();
let aimIk = obj.AddComponent<AimIK>(AimIK);
aimIk.axis;