完整的写法:public static Vector3 Lerp(Vector3 a,Vector3 b,float t);
首先看一下API是怎么说的:
Linearly interpolates between two vectors. Interpolates between the vectors |
本文详细介绍了Unity中的Vector3.Lerp方法,它用于在两个向量之间进行线性插值。尽管不能直接控制移动时间,但在结合Time.deltaTime或Time.time使用时,可用于摄像机跟随和平滑移动效果。作者分享了具体使用示例,并提到更多用法有待进一步探索。
完整的写法:public static Vector3 Lerp(Vector3 a,Vector3 b,float t);
首先看一下API是怎么说的:
Linearly interpolates between two vectors. Interpolates between the vectors |
2076
5805
2827
1万+

被折叠的 条评论
为什么被折叠?