SFE_rotateThis.js 290 B

123456789101112
  1. var rotationSpeedX:float=90;
  2. var rotationSpeedY:float=0;
  3. var rotationSpeedZ:float=0;
  4. private var rotationVector:Vector3=Vector3(rotationSpeedX,rotationSpeedY,rotationSpeedZ);
  5. function Update () {
  6. transform.Rotate(Vector3(rotationSpeedX,rotationSpeedY,rotationSpeedZ)*Time.deltaTime);
  7. }