Created
June 6, 2015 14:52
-
-
Save peroon/2f24d7dcf338efdbb1a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using DG.Tweening; | |
public static class TransformExtensions | |
{ | |
public static void SmoothLookAt(this Transform self, Vector3 pos, float time) | |
{ | |
self.DORotate (Quaternion.LookRotation (pos).eulerAngles, time); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment