SA.FullBodyIK.BodyIK.SolverInternal.Translate C# (CSharp) Method

Translate() public method

public Translate ( Vector3 &origTranslate ) : void
origTranslate UnityEngine.Vector3
return void
				public void Translate( ref Vector3 origTranslate )
				{
					_centerArmPos += origTranslate;
					_centerLegPos += origTranslate;

					if( spinePos != null ) {
						for( int i = 0; i != spinePos.Length; ++i ) {
							spinePos[i] += origTranslate;
						}
					}
					
					neckPos += origTranslate;
					if( headEnabled ) {
						headPos += origTranslate;
					}
					
					for( int i = 0; i != 2; ++i ) {
						if( legPos != null ) {
							legPos[i] += origTranslate;
						}

						if( shoulderPos != null ) {
							shoulderPos[i] += origTranslate;
						}

						if( armPos != null ) {
							armPos[i] += origTranslate;
						}
					}
				}