public static ToFingerType ( EffectorLocation effectorLocation ) : FingerType | ||
effectorLocation | EffectorLocation | |
return | FingerType |
public static FingerType ToFingerType( EffectorLocation effectorLocation )
{
if( IsHandFingerEffectors( effectorLocation ) ) {
int value = (int)effectorLocation - (int)EffectorLocation.LeftHandThumb;
return (FingerType)(value % 5);
}
return FingerType.Unknown;
}
FullBodyIK::ToFingerType ( BoneLocation boneLocation ) : FingerType |