Class RelativisticCamera

All Implemented Interfaces:

public class RelativisticCamera extends AbstractCamera
  • Field Details

  • Constructor Details

    • RelativisticCamera

      public RelativisticCamera(CameraManager parent)
    • RelativisticCamera

      public RelativisticCamera(com.badlogic.gdx.assets.AssetManager assetManager, CameraManager parent)
  • Method Details

    • getCamera

      public getCamera()
      Description copied from interface: ICamera
      Returns the perspective camera.
      The perspective camera.
    • setCamera

      public void setCamera( cam)
      Description copied from interface: ICamera
      Sets the active camera
    • getFrontCameras

      public[] getFrontCameras()
    • setDirection

      public void setDirection(Vector3d dir)
    • getDirection

      public Vector3d getDirection()
    • getUp

      public Vector3d getUp()
    • getDirections

      public Vector3d[] getDirections()
    • getNCameras

      public int getNCameras()
    • speedScaling

      public double speedScaling()
    • update

      public void update(double dt, ITimeFrameProvider time)
      Description copied from interface: ICamera
      Updates the camera.
      dt - The time since the las frame in seconds.
      time - The frame time provider (simulation time).
    • updateMode

      public void updateMode(ICamera previousCam, CameraManager.CameraMode previousMode, CameraManager.CameraMode newMode, boolean centerFocus, boolean postEvent)
    • getMode

      public CameraManager.CameraMode getMode()
    • getSpeed

      public double getSpeed()
      Description copied from interface: ICamera
      Gets the current velocity of the camera in km/h.
      The velocity in km/h.
    • getFocus

      public IFocus getFocus()
      Description copied from interface: ICamera
      Returns the foucs if any
      The foucs object if it is in focus mode. Null otherwise
    • isFocus

      public boolean isFocus(IFocus cb)
      Description copied from interface: ICamera
      Checks if this body is the current focus
      cb - The body
      Whether the body is focus
    • resize

      public void resize(int width, int height)