Unity 逐步旋转

        npc.transform.rotation = Quaternion.Slerp(npc.transform.rotation,
            Quaternion.LookRotation(moveDir),
            5 * Time.deltaTime);
        npc.transform.eulerAngles = new Vector3(0, npc.transform.eulerAngles.y, 0);
posted @ 2016-09-28 18:54  yufenghou  阅读(176)  评论(0编辑  收藏  举报