SA.FullBodyIK.ToFingerType C# (CSharp) Method

ToFingerType() public static method

public static ToFingerType ( BoneLocation boneLocation ) : FingerType
boneLocation BoneLocation
return FingerType
		public static FingerType ToFingerType( BoneLocation boneLocation )
		{
			if( (int)boneLocation >= (int)BoneLocation.LeftHandThumb0 &&
				(int)boneLocation <= (int)BoneLocation.LeftHandLittleTip ) {
				return (FingerType)(((int)boneLocation - (int)BoneLocation.LeftHandThumb0) / MaxHandFingerLength);
			}

			if( (int)boneLocation >= (int)BoneLocation.RightHandThumb0 &&
				(int)boneLocation <= (int)BoneLocation.RightHandLittleTip ) {
				return (FingerType)(((int)boneLocation - (int)BoneLocation.RightHandThumb0) / MaxHandFingerLength);
			}

			return FingerType.Unknown;
		}

Same methods

FullBodyIK::ToFingerType ( EffectorLocation effectorLocation ) : FingerType
FullBodyIK