📜  平滑旋转统一 - C# 代码示例

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

代码示例2
float targetAngle = 90;
 float turnSpeed = 5;
 transform.rotation = Quaternion.Slerp (transform.rotation, Quaternion.Euler (0, 0, targetAngle), turnSpeed * Time.deltaTime);