Libgdx: Moving a rotated perspective camera
I am developing an android app which visualize the map of an environment and currently i am using libgdx to draw the map, also like any map application the user should be capable of zoom, rotate and moving the map, I have developed a GestureHandler class which implements GestureListener interface and interacts with a PerspectiveCamera (since i will use 3d components in the future): @Override public boolean pan(float x, float y, float deltaX, float deltaY) { float tempX = (mapView.getCamera().position.x - deltaX * 0.5f); float tempY = (mapView.getCamera().position.y + deltaY * 0.5f); mapView