format
typescript
LimbIK.bendGoalclass: LimbIK
description
The bent target Transform. Used to specify the direction in which the limbs bend during the IK process.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Transform |
code example
typescript
let obj = new GameObject();
let LimbIk = obj.AddComponent<LimbIK>(LimbIK);
let goalObj = new GameObject("goal");
goalObj.transform.position = new Vector3(5, 5, 5);
LimbIk.bendGoal = goalObj.transform;
Debug.Log("LimbIk: bendGoal position is ", LimbIk.bendGoal.position);