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;
}
}