AimIK
extends IKSolver
The AimIK class is used to implement an animation system solution for precise aiming and targeting.
It can help characters or objects smoothly and naturally turn towards a target. It is useful for various types of characters and objects, especially in shooting games or other scenarios that require precise aiming.
You can obtain the AimIK component in the following way:
typescript
let obj = new GameObject();
let aimIk = obj.AddComponent<AimIK>(AimIK);成员变量
AimIK.fixTransform : boolean |
| Whether to reset all used transformations to their initial state on each update. |
AimIK.aimTransform : Transform|null |
| The Transform used for aiming at a target. |
AimIK.poleTarget : Transform|null |
| The specified additional target point. |
AimIK.target : Transform|null |
| The Transform that aims at the target. |
AimIK.axis : Vector3 |
| Used to specify the axis of rotation when facing a target. |
AimIK.poleAxis : Vector3 |
| Specifies the axis of a polar vector. |
AimIK.poleWeight : number |
| Used to control the weight of the pole vector. |
