Example #1
0
    void UpdateRotation()
    {
        //更新每一根关节的旋转信息.
        if (!RotationList.ContainsKey(currentJointName))
        {
            return;
        }
        List <YamlSQTData> pList = RotationList[currentJointName];

        if (FindKeyFrames(pList))
        {
            CurentSQT.Rotation_Weight = 1;
            CurentSQT.Rotation        = HermiteTool.GetHermitePoint_Q(frameLerp, (YamlRotationData)preFrameData, (YamlRotationData)nexFrameData, aAnimator.LerpType);
        }
        else
        {
            CurentSQT.Rotation_Weight = 0;
        }
    }
Example #2
0
    void UpdateScale()
    {
        //更新每一根关节的缩放信息.
        if (!ScaleList.ContainsKey(currentJointName))
        {
            return;
        }
        List <YamlSQTData> pList = ScaleList[currentJointName];

        if (FindKeyFrames(pList))
        {
            CurentSQT.Scale_Weight = 1;
            CurentSQT.Scale        = HermiteTool.GetHermitePoint_S(frameLerp, (YamlScaleData)preFrameData, (YamlScaleData)nexFrameData, aAnimator.LerpType);
        }
        else
        {
            CurentSQT.Scale_Weight = 0;
        }
    }