Guest User

Untitled

a guest
Jul 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var smoothTime = 0.3;
  2.     private var velocity = Vector3.zero;
  3.     private var oldRotation : Vector3 = Vector3.zero;
  4.      
  5.     function Update () {
  6.             transform.rotation =  Vector3.SmoothDamp(oldRotation, transform.rotation, velocity, 0.3, 3.5);
  7.             oldRotation = transform.rotation;
  8.  
  9.      }
Add Comment
Please, Sign In to add comment