this didn’t work and i dont know why:"
Vector3.Angle(go.transform.eulerAngles ,vector3.zero);
the result stays stuck at 90 for any go.rotation
this didn’t work and i dont know why:"
Vector3.Angle(go.transform.eulerAngles ,vector3.zero);
the result stays stuck at 90 for any go.rotation
Which axis? Vector3.zero
is not an axis, because it is equal to (0, 0, 0) which points nowhere. You should try to find the angle to something like Vector3.up
(0, 1, 0) which points upwards, or Vector3.forward
(0, 0, 1) which points forward.
As a side note, it’s usually best to use normalized vectors for this sort of thing. Just add .normalized
to the vector.