Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float lookSpeed = 3 [wartosc];
- var rotation = Quaternion.LookRotation(target.transform.position - transform.position);
- transform.rotation = Quaternion.Lerp(Player.rotation, rotation, Time.smoothDeltaTime * lookSpeed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement