言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Animator.leftFeetBottomHeight

Switch to Manual
public var leftFeetBottomHeight: float;

Description

左足の底の位置の高さを取得します

	void LateUpdate()
	{
		if(animator)
		{
			Vector3 leftFootT = animator.GetIKPosition(AvatarIKGoal.LeftFoot);
			Quaternion leftFootQ = animator.GetIKRotation(AvatarIKGoal.LeftFoot);
			
			Vector3 leftFootH = new Vector3(0, -animator.leftFeetBottomHeight, 0);
			
			Vector3 pos = leftFootT + leftFootQ * leftFootH;
			Debug.Log(pos);
		}
	}