Hi, i’m working on a school project and i’m having a problem with Vector3.normalized.
I have these 3 vectors.
Vector3 e = new Vector3(10, 0, 0);
Vector3 v = new Vector3(-1, 0, 0);
Vector3 u = new Vector3(
(Mathf.Cos(Mathf.PI) * Mathf.Cos(0 + Mathf.PI / 2)),
(Mathf.Sin(Mathf.PI) * Mathf.Cos(0 + Mathf.PI / 2)),
Mathf.Sin(0 + Mathf.PI / 2));
And then this operation
Vector3 res1 = (v * -1.0f).normalized;
Vector3 res2 = Vector3.Cross(u, res1).normalized;
Vector3 res3 = Vector3.Cross(res1, res2);
But res2 and res3 contains some weird values, you can see it on image below
As you can see the problem is the z coordinate, i need that vector to contain only 1 or 0 as the string normalized version shows.
Any tips why these values are still in that vector after normalized?
Thanks for any help.