I have an object made purely for testing retrieving a rotation. Here is the script:
using UnityEngine;
using System.Collections;
public class TestingRot : MonoBehaviour {
public float Rot;
void Update () {
Rot = gameObject.transform.rotation.y;
}
}
The number it always returns is : 0.7660445, even though the object’s rotation is 100. There are no other scripts on the object.