Class CamMan

java.lang.Object
group24.escaperoom.screens.editor.CamMan

public class CamMan extends Object
A manager for your camera
  • Constructor Details

    • CamMan

      public CamMan(com.badlogic.gdx.graphics.OrthographicCamera camera)
      Parameters:
      camera - to manage
  • Method Details

    • unproject

      public com.badlogic.gdx.math.Vector2 unproject(float x, float y)
      Parameters:
      x - coord
      y - coord
      Returns:
      the unprojected vector
    • translate

      public void translate(float dx, float dy)
      Set the position of the camera absolutely
      Parameters:
      dx - amount
      dy - amount
    • setPosition

      public void setPosition(float x, float y)
      Set the position of the camera absolutely
      Parameters:
      x - coord
      y - coord
    • translate

      public void translate(CamMan.Translation translation)
      Parameters:
      translation - direction to move
    • setZoom

      public void setZoom(float zoom)
      Set the zoom to a particular value. The value will still be clamped to minimum and maximums
    • zoomOut

      public void zoomOut()
      Zoom out...
    • zoomIn

      public void zoomIn()
      Zoom in...