Unity3D 平滑转向

Quaternion rotate = Quaternion.LookRotation(目标.position - transform.position);
transform.rotation = Quaternion.Slerp(transform.rotation, rotate, Time.deltaTime * 旋转速度);

posted on 2016-10-19 13:28  3137102247  阅读(652)  评论(0编辑  收藏  举报

导航