📜  unity 平滑旋转 2d - C# 代码示例

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

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