Пример #1
0
 protected virtual bool IsTrackedJoint(QuickHumanBodyBones boneID)
 {
     if (QuickHumanTrait.IsBoneFingerLeft(boneID))
     {
         return(IsTrackedJointHandLeft(QuickHumanTrait.GetFingerFromBone(boneID)));
     }
     else if (QuickHumanTrait.IsBoneFingerRight(boneID))
     {
         return(IsTrackedJointHandRight(QuickHumanTrait.GetFingerFromBone(boneID)));
     }
     return(IsTrackedJointBody(_toTrackedJointBody[boneID]));
 }
Пример #2
0
 protected virtual Transform GetIKTargetParent(HumanBodyBones boneID)
 {
     if (boneID == HumanBodyBones.LeftEye || boneID == HumanBodyBones.RightEye)
     {
         return(GetIKSolver(IKBone.Head)._targetLimb);
     }
     if (QuickHumanTrait.IsBoneFingerLeft(boneID))
     {
         return(GetIKSolver(IKBone.LeftHand)._targetLimb);
     }
     if (QuickHumanTrait.IsBoneFingerRight(boneID))
     {
         return(GetIKSolver(IKBone.RightHand)._targetLimb);
     }
     return(_ikTargetsRoot);
 }