Skip to content

format

typescript
LimbIK.bendGoal

class: LimbIK

description

The bent target Transform. Used to specify the direction in which the limbs bend during the IK process.

parameter

param_nametypedescription

reture

typedescription
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);