Use camera.unproject(vector3)
vector3 is:
x = Gdx.input.getX();
y = Gdx.input.getY();
z=0;
Vector3 vector3 = new Vector3 (x,y,z);
Pass this vector in camera.unproject(vector3).
Use x and y of this vector to draw your character.
Use camera.unproject(vector3)
vector3 is:
x = Gdx.input.getX();
y = Gdx.input.getY();
z=0;
Vector3 vector3 = new Vector3 (x,y,z);
Pass this vector in camera.unproject(vector3).
Use x and y of this vector to draw your character.