Ok, i know there’s plenty of topics about that around the web. I’ve read plenty, tried plenty and didn’t manage to get any to work.
To test, i’ve created a new Vector on 0,0,0 and i’m trying to compare it with my mouse position. So, i expected to get 0-359 while circulating the 0,0,0 point
An example of the last try i did:
Vector3 vec1 = new Vector3(0, 0, 0);
Vector3 vec2 = Input.mousePosition;
Debug.Log("Angle of PointA to PointB is " + Vector3.Angle(Vector3.right, vec2 - vec1));
Also tried with Vector2 for same results. I get values around 13-40 with this experiment. I’m completely lost and most likely doing something quite stupid, so i hope you can understand what i want by my first explanation, not the code.
If anyone could be kind to help me here i would be grateful.