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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -