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

スクリプト言語

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

Animator.rightFeetBottomHeight

Switch to Manual
public var rightFeetBottomHeight: float;

Description

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

	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);
		}
	}