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

_ComputeCenterLegBasis() static private method

static private _ComputeCenterLegBasis ( Matrix3x3 &centerLegBasis, Vector3 &spinePos, Vector3 &leftLegPos, Vector3 &rightLegPos ) : bool
centerLegBasis Matrix3x3
spinePos UnityEngine.Vector3
leftLegPos UnityEngine.Vector3
rightLegPos UnityEngine.Vector3
return bool
			static bool _ComputeCenterLegBasis(
				out Matrix3x3 centerLegBasis,
				ref Vector3 spinePos,
				ref Vector3 leftLegPos,
				ref Vector3 rightLegPos )
			{
				Vector3 dirX = rightLegPos - leftLegPos;
				Vector3 dirY = spinePos - (rightLegPos + leftLegPos) * 0.5f;
				if( SAFBIKVecNormalize( ref dirY ) ) {
					return SAFBIKComputeBasisFromXYLockY( out centerLegBasis, ref dirX, ref dirY );
				} else {
					centerLegBasis = Matrix3x3.identity;
					return false;
				}
			}