My camera is rotated 90 deg around the X axis. (Rotation : 90,0,0) and is at (Pos 0,10000,0);
When I run the game, the log stays on : 0, 10000, 0.
If I use a new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0) as parameter for the screenToWorldPoint function, the log updates but the coordonates are not right.
public Vector3 mousePos;
void Update(){
mousePos = Camera.main.ScreenToWorldPoint (Input.mousePosition);
Debug.Log (mousePos);
}
Please help.