SA.FullBodyIK.BodyIK._ConcatPull C# (CSharp) Method

_ConcatPull() static private method

static private _ConcatPull ( float pull, float effectorPull ) : float
pull float
effectorPull float
return float
			static float _ConcatPull( float pull, float effectorPull )
			{
				if( pull >= 1.0f - IKEpsilon ) {
					return 1.0f;
				}
				if( pull <= IKEpsilon ) {
					return effectorPull;
				}
				if( effectorPull > IKEpsilon ) {
					if( effectorPull >= 1.0f - IKEpsilon ) {
						return 1.0f;
					} else {
						return pull + (1.0f - pull) * effectorPull;
					}
				} else {
					return pull;
				}
			}