Advertisement
Guest User

lerp

a guest
Dec 24th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. void Update()
  2. {
  3.  
  4.         gameObject.transform.localScale = vp1;
  5.  
  6.     if (checkers == true)
  7.     {
  8.                 vp1 = Vector3.Lerp(new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0172f, 0.0172f, 0.0172f), 0.1f);
  9.     }
  10.      else
  11.     {
  12.                 vp1 = Vector3.Lerp(new Vector3(0.0172f, 0.0172f, 0.0172f), new Vector3(0.0f, 0.0f, 0.0f), 0.1f);
  13.     }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement