float w = (1f / Screen.width) * Input.mousePosition.x;
Vector3 mousepos = new Vector3((1f / Screen.width) * Input.mousePosition.x, 1f / Screen.height * Input.mousePosition.y);
It’s written exactly the same. But float w
is not the same as mousepos.x
Why tho? I thought vector3 is just a bowl of 3 floats.
Cheers!