Hello I’m new to Unity, and I’m having some problems getting the Z value of a rotation. I’ve got a crate and I want to play a sound when it rotates more then 45 degrees. I tried this:
Thanks, it solved the issue but not the problem. I’ve got to try a different aproach, it seems to me that it returns the world “Z” not the local from each individual prefab so it’s not working. But thanks anyway, you answer made me check the quaternions methods.