format
typescript
FABRIK.targetclass: FABRIK
description
The Transform that is oriented towards the target.
It represents the adjustment of joint angles to bring the end of a bone (or end effector) closer to a target position.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Transform|null | The Transform that is oriented towards the target. |
code example
typescript
let obj = new GameObject();
let FABRIk = obj.AddComponent<FABRIK>(FABRIK);
let targetObj = new GameObject("target");
targetObj.transform.position = new Vector3(5, 5, 5);
com.target = targetObj.transform;
Debug.Log("FABRIK: target position is ", FABRIk.target.position);