在3D遊戲中經常要用到攝像機跟著任務(target)運動

在3D遊戲中經常要用到攝像機跟著任務(target)運動 下面列出幾個主要用到的方法 1.transform.eulerAngles.y transform的y軸的歐拉角。此值代表以y為軸左右旋轉的角度。用以得到在x-z平面的轉動角度 2.Mathf.SmoothDampAngle (current : float, target : float, ref currentVelocit......
在3D遊戲中經常要用到攝像機跟著任務(target)運動 下面列出幾個主要用到的方法 1.transform.eulerAngles.y transform的y軸的歐拉角。此值代表以y為軸左右旋轉的角度。用以得到在x-z平面的轉動角度 2.Mathf.SmoothDampAngle (current : float, target : float, ref currentVelocit......