// Use this for initialization void Start() { anim = GetComponent <Animator>(); iHandIkSolver = GetComponent <IhandIkSolver>(); iLookIkSolver = GetComponent <IlookIkSolver>(); iFootIkSolver = GetComponent <IfootIkSolver>(); foreach (IikBase ib in GetComponents <IikBase>()) { iIkBases.Add(ib); } }
private void applyIkResult(IhandIkSolver iis) { if (iis.isEnabled() == false) { return; } leftHandIkPos = iis.getLeftHandIkPos(); leftHandIkRot = iis.getLeftHandIkRot(); rightHandIkPos = iis.getRightHandIkPos(); rightHandIkRot = iis.getRightHandIkRot(); }