3d物体平缓摆动

transform.position = Vector3.Lerp(start.transform.position, end.transform.position, Mathf.SmoothStep(0f, 1f, Mathf.PingPong(Time.time / 3f, 1f)));

  

posted @ 2017-07-13 15:15  CocomoNo1  阅读(149)  评论(0编辑  收藏  举报