ScreenPointToRay and Physics.Raycast with orthographic view

Hi, i’m trying to use “Physics.Raycast” in an orthographic view game but it doesn’t detect the “position” of the mouse.
Someone know a way to make it works?
the Player Object have a box collider and it’s on .z = 0, position.

        var ray = Camera.main.ScreenPointToRay (Input.mousePosition);
	    var hit : RaycastHit;
	    if (Physics.Raycast (ray, hit)) {
    		if (hit.collider.gameObject.tag == "Player" ){  
    			
    			print("hit");
                        //it doesn't work
    		} 
	    }

solved, just put the box collider in z position = 100, because is too near of the camera!