I add a perspective camera.
cam = new PerspectiveCamera(45, 480, 320);
When I try to get the touchpoints with
I get wrong numbers. My Perspective width is 480.
When I touch with my finger the screen (rightmost), I get 1196.
This is my screen resolution of my device.
EDIT: I also get wrong numbers when I try:
private Vector3 touchPoint;
cam.unproject(touchPoint.set(Gdx.input.getX(), Gdx.input.getY(), 0));
System.out.println(touchPoint.x+" | "+touchPoint.y);
I get something like this with touchpoint.x: -6 to 0.75