Beispiel #1
0
        // Update is called once per frame
        void LateUpdate()
        {
            leftLegIK.ApplyIK();
            rightLegIK.ApplyIK();

            leftArmIK.priorJoint = priorJoint;
            leftArmIK.ApplyIK();

            rightArmIK.priorJoint = priorJoint;
            rightArmIK.ApplyIK();

            headIK.ApplyIK();
        }
Beispiel #2
0
        /// <summary>
        /// 毎フレームでのIK処理
        /// </summary>
        void LateUpdate()
        {
            leftLegIK.method = legIkMode;
            leftLegIK.ApplyIK();

            rightLegIK.method = legIkMode;
            rightLegIK.ApplyIK();

            leftArmIK.method = armIkMode;
            leftArmIK.ApplyIK();

            rightArmIK.method = armIkMode;
            rightArmIK.ApplyIK();

            headIK.method = headIkMode;
            headIK.ApplyIK();
        }