Advertisement
ricardoribeiro2009

minicubeSpin_UNITY

Feb 11th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                             //UNITY
  2. //Script to change constantly the rotation of an object, like the mini drop cubes of minecraft
  3. //Atach to an object, and it will spen constantly
  4.  
  5. var spinSpeed : float = 4;  // change the value to change the spin speed
  6.  
  7. function Upgrade()
  8. {  
  9.     transform.Rotate(0, 0, spinSpeed * Time.deltaTime);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement