Advertisement
MrsMcLead

Rotate About x axis

Dec 6th, 2013
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Rotator : MonoBehaviour {
  5.    
  6.     public float rotateSpeed = 5f;
  7.    
  8.     void Update () {
  9.         transform.Rotate (new Vector3(0, rotateSpeed*Time.deltaTime,0));
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement