devNotes 12-13-2016 Controller Orientation

using UnityEngine; using System.Collections; public class RotateAroundPivot : MonoBehaviour { public Vector3 Pivot; public bool DebugInfo = true; //it could be a Vector3 but its more user friendly public bool RotateX = false; public bool RotateY = true; public bool RotateZ = false; void FixedUpdate() { transform.position += (transform.rotation*Pivot); if (RotateX) transform.rotation *= Quaternion.AngleAxis(45*Time.deltaTime, Vector3.right); … Continue reading devNotes 12-13-2016 Controller Orientation