So I have been trying to narrow out some errors in mouse track with where you click and the normalized coordinates produced. EG, the left is 0 right is 1, center is 0.9. It exponentially decreases the amount it changes. Ive made my own normalization function, but I would also like to know what i am doing wrong I hate that I’m reinventing the wheel.
In general: normalizing is almost always the same procedure. Just divide the value by the maximum-range. If the x-coordinate goes from 0 to Screen.width just divide by Screen.width…
Its a property within the Input.mousePosition class so really this is the code to show me the information.
Debug.Log(Input.mousePosition.normalized.ToString());
You can try Input.mosuePosition.Normalize(); however Input.mousePosition.normalized produces the same results if you use that method.
I already made my own Normalized coordinate its not hard. However the unity function built into the mousePosition class is wrong. EG the reason for this post wondering if anyone else used the Unity Method to do this instead of writing their own.