Esempio n. 1
0
    void CalcuateSliceHeights()
    {
        m_SliceHeights.Clear();
        var    time     = m_DropEquation.GetInverseValue(m_SpaceSize.y);
        double interval = 0.021;

        while (time - interval > 0)
        {
            time -= interval;
            var height = m_DropEquation.GetValue(time);
            if (height < 0.0f)
            {
                break;
            }
            m_SliceHeights.Add((float)height);
        }
        m_SliceHeights.Add(0.0f);
    }