Created
December 6, 2014 12:40
-
-
Save musaprg/bdd7cba3753a4cc438f7 to your computer and use it in GitHub Desktop.
Rotating cube(Unity)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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