📜  移动位置平滑统一 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.144000             🧑  作者: Mango

代码示例1
Vector3 newPos = new Vector3(transform.position.x, posY, transform.position.z);
         transform.position = Vector3.Lerp(transform.position, newPos, Time.deltaTime * transitionSpeed);