美文网首页
Mathf.PingPong

Mathf.PingPong

作者: 技术博客 | 来源:发表于2018-07-24 10:24 被阅读17次


    Mathf.PingPong

    public static float PingPong(float t, float length);

    返回的是 0 - length中间数值 ,不会到0,也不会到length最大值

    t 只能用 Time.time,t 不能用固定数值

    Material.Lerp

    public void Lerp(Material start, Material end, float t);

    线性过渡,从start材质到end材质球之间不断来回过渡,当t为0时,为start,当t为1时,为end

    相关文章

      网友评论

          本文标题:Mathf.PingPong

          本文链接:https://www.haomeiwen.com/subject/kjmpyftx.html