Exemple #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;
        }
    }