Exemplo n.º 1
0
            public void ApplyTween(float inPercent)
            {
                Vector3 final = new Vector3(
                    m_Start.x + m_Delta.x * inPercent,
                    m_Start.y + m_Delta.y * inPercent,
                    m_Start.z + m_Delta.z * inPercent);
                Vector3 current;

                if ((m_Axis & Axis.XYZ) == Axis.XYZ)
                {
                    current = final;
                }
                else
                {
                    current = m_Spline.GetControlPoint(m_Index);
                    VectorUtil.CopyFrom(ref current, final, m_Axis);
                }

                m_Spline.SetControlPoint(m_Index, current);
            }