Quaternion TargetRotation = Quaternion.LookRotation(m_Target.transform.position - transform.position, Vector3.up); transform.rotation = Quaternion.Slerp(transform.rotation, TargetRotation, Time.deltaTime * 2.5f);
1个物体以一定的速度转向目标物体
最新推荐文章于 2024-04-22 12:40:07 发布