Skip to content

Instantly share code, notes, and snippets.

@musaprg
Created December 6, 2014 12:40
Show Gist options
  • Save musaprg/bdd7cba3753a4cc438f7 to your computer and use it in GitHub Desktop.
Save musaprg/bdd7cba3753a4cc438f7 to your computer and use it in GitHub Desktop.
Rotating cube(Unity)
using UnityEngine;
using System.Collections;
public class myscript : MonoBehaviour {
private float v;
// Use this for initialization
void Start () {
v = 2.0f;
}
// Update is called once per frame
void Update () {
this.transform.Rotate(v, v, v);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment