AR + GPS Location  3.0.0
All Classes Namespaces Functions Variables Properties Events Pages
RotateObject.cs
1 using UnityEngine;
2 
3 namespace ARLocation.Utils
4 {
5  public class RotateObject : MonoBehaviour
6  {
7  public float Speed = 10.0f;
8  public Vector3 Axis = Vector3.up;
9 
10  private float angle;
11 
12  // Update is called once per frame
13  void Update()
14  {
15  angle += Speed * Time.deltaTime;
16  transform.localRotation = Quaternion.AngleAxis(angle, Axis);
17  }
18  }
19 }
ARLocation.Utils.RotateObject
Definition: RotateObject.cs:6
ARLocation.Utils
Definition: CreatePointOfInterestTextMeshes.cs:9