实现的功能:1个物体以一定的速度转向目标物体
Quaternion TargetRotation = Quaternion.LookRotation(m_Target.transform.position - transform.position, Vector3.up);
transform.rotation = Quaternion.Slerp(transform.rotation, TargetRotation, Time.deltaTime * 2.5f);
1个物体以一定的速度转向目标物体,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/softimagewht/p/3812979.html