How do you continuously rotate an object?
Is there a way you can make a C# script on how to continuously rotate an object (Y axis) ?
Answer by _Game_Dev_Dude_ · Nov 19, 2015 at 03:37 PM
http://docs.unity3d.com/ScriptReference/Transform.Rotate.html
At least google. =/
I want an object that rotates around in a flat circle not in every single direction.
This doesn't have to rotate in every single direction. If you pass a 0 for a direction, then it won't rotate in that direction.
I still don't understand... How do you rotate the object only on one axis? This is what my script looks like at the moment.
using UnityEngine; using System.Collections;
public class ObjectRotation : $$anonymous$$onoBehaviour { void Update() { transform.Rotate(Time.deltaTime, 0, 0); transform.Rotate(0, Time.deltaTime, 0, Space.World); } }