java - Transformation the screen coordinates to stage coordinates -
when call line gdx.input.gety();
screen origin top left corner, stage coordinates in buttom left corener. how can transform screen coordinates stage coordinates ? (without using camera) i.e. how can make screen origin in bottom left corner ?
you should use screentostagecoordinates stage method. example of getting input position vector is:
vector2 position = stage.screentostagecoordinates( new vector2(gdx.input.getx(), gdx.input.gety()) );
Comments
Post a Comment