Transform.rotation suddenly giving errors?
Okay, so I have code that rotates the gameObject tempRoom in 90-degree increments around the Z-axis. It then gets which increment is being used for further calculations. I had been using "tempRoom.transform.rotation.z" and everything is just fine.
However, while before it would give 0, 90, 180, and -90 or 270, now tempRoom.transform.rotation.z is giving values like (0, 0, 1, 0) and (0, 0, 0.7, 0.7). This has broken a section of code that previously was working just fine, and I have not touched the code in charge of rotating the object.
What could be causing the issue that made tempRoom.transform.rotation.z to go from showing 180 to 1 without changing the actual rotation of the room? I have confirmed that 0-degrees is 0, 180 is 1, and both 90 and 270 are 0.7