Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Quaternion targetRot = Quaternion.LookRotation(targetPosition - transform.position);
- transform.rotation = Quaternion.Slerp( transform.rotation, targetRot, 2f * Time.deltaTime );
Advertisement
Add Comment
Please, Sign In to add comment