- Home /
Coordinates of Input.GetTouch(0).position vs Screen coordinates?
Is it just me or does Input.GetTouch(0).position actually work from an origin at the bottom left hand corner, but Screen coordinates seem to have an origin on the top left hand corner?
Does Input.mousePosition give the same coordinates as Input.GetTouch(0) ?
Comment
Answer by oxium · Mar 27, 2012 at 08:49 AM
indeed, you have to invert the Y value
something like that :
y = Screen.height - y