Package org.andrewberman.ui.camera

Examples of org.andrewberman.ui.camera.Camera


      // ratio of current zoom to the original zoom.
      double zoomRatio = downZoom / zoomTween.getPosition();
      // new distances from down point to center.
      float newX = (float) (downCameraX + dx - dx * zoomRatio);
      float newY = (float) (downCameraY + dy - dy * zoomRatio);
      Camera cam = getCamera();
      cam.zoomTo(zoomTween.getPosition());
      cam.nudgeTo(newX, newY);
      cam.fforward();
    }
  }
View Full Code Here

TOP

Related Classes of org.andrewberman.ui.camera.Camera

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.