缓慢旋转

public void TurnAround()
{
transform.rotation = Quaternion.Slerp(transform.rotation, SheepPos.transform.rotation, Time.deltaTime * rotateSpeed);
}
写在Update里,在完全旋转完成之前不能有条件

猜你喜欢

转载自blog.csdn.net/vickieyy/article/details/88075672
今日推荐