1 Quaternion targetRotation = Quaternion.LookRotation(destPos - transform.position); 2 transform.rotation = Quaternion.Slerp(transform.rotation,targetRotation,Time.deltaTime*curRotSpeed);
1 Quaternion targetRotation = Quaternion.LookRotation(destPos - transform.position); 2 transform.rotation = Quaternion.Slerp(transform.rotation,targetRotation,Time.deltaTime*curRotSpeed);