topical media & game development

talk show tell print

lib-unity-book-05-RotateObject.js / js



  /* Script Provided by Will Goldstone as part of Unity Game Development Essentials book assets */
  /* Please Do Not Remove this comment - this script is for reference only */
  
  var rotationAmount : float = 5.0;
  
  function Update () {
          transform.Rotate(Vector3(0,rotationAmount,0));
  }


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.