Created
March 14, 2014 22:34
-
-
Save yunojy/9558420 to your computer and use it in GitHub Desktop.
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 AroundAndAround : MonoBehaviour { | |
public float Speed = 1.0f, Radius = 20.0f; | |
void Update () { | |
transform.Rotate(0, Speed, 0); | |
transform.localPosition = transform.forward * Radius; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment