Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Animator.rightFeetBottomHeight

Switch to Manual
var rightFeetBottomHeight: float;
float rightFeetBottomHeight;
rightFeetBottomHeight as float

Description

Get right foot bottom height.

	void LateUpdate()
	{
		if(animator)
		{
			Vector3 rightFootT = animator.GetIKPosition(AvatarIKGoal.RightFoot);
			Quaternion rightFootQ = animator.GetIKRotation(AvatarIKGoal.RightFoot);

Vector3 rightFootH = new Vector3(0, -animator.rightFeetBottomHeight, 0);

Vector3 pos = rightFootT + rightFootQ * rightFootH; Debug.Log(pos); } }