3d物体平缓摆动

mac2022-07-05  30

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

  

转载于:https://www.cnblogs.com/Cocomo/p/7160656.html

最新回复(0)