SA.FullBodyIK._NormalizedTranslate C# (CSharp) Method

_NormalizedTranslate() public static method

public static _NormalizedTranslate ( Vector3 &dir, Vector3 &fr, Vector3 &to ) : bool
dir Vector3
fr Vector3
to Vector3
return bool
		public static bool _NormalizedTranslate( ref Vector3 dir, ref Vector3 fr, ref Vector3 to )
		{
			Vector3 t = to - fr;
			float length = t.magnitude;
			if( length > IKEpsilon ) {
				dir = t * (1.0f / length);
				return true;
			}

			dir = Vector3.zero;
			return false;
		}
		
FullBodyIK