📜  unity lookrotation lerp - C# 代码示例

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

代码示例1
Quaternion lookOnLook =
        Quaternion.LookRotation(enemy.transform.position - transform.position);
 
 transform.rotation =
        Quaternion.Slerp(transform.rotation, lookOnLook, Time.deltaTime);