Skip to content

Instantly share code, notes, and snippets.

@Ruqyai
Created October 20, 2018 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ruqyai/07573df8c4bc4f40f89d43bbfc4f6fd7 to your computer and use it in GitHub Desktop.
Save Ruqyai/07573df8c4bc4f40f89d43bbfc4f6fd7 to your computer and use it in GitHub Desktop.
How to rotate the earth
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateEarth : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Rotate(0,1,0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment