RootMotion.FinalIK.IKSolver.Initiate C# (CSharp) Method

Initiate() public method

Initiate the solver with specified root Transform. Use only if this %IKSolver is not a member of an %IK component.
public Initiate ( Transform root ) : void
root UnityEngine.Transform
return void
		public void Initiate(Transform root) {
			if (OnPreInitiate != null) OnPreInitiate();

			if (root == null) Debug.LogError("Initiating IKSolver with null root Transform.");
			this.root = root;
			initiated = false;
			if (!IsValid(Application.isPlaying)) return;

			OnInitiate();
			StoreDefaultLocalState();
			initiated = true;
			firstInitiation = false;

			if (OnPostInitiate != null) OnPostInitiate();
		}