Class FreeFlightCamera

java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.FreeFlightCamera
All Implemented Interfaces:
ICamera, IUpdateable

public class FreeFlightCamera extends Camera implements IUpdateable
  • Constructor Details

    • FreeFlightCamera

      public FreeFlightCamera()
      Initializes a new instance of the FreeFlightCamera.
    • FreeFlightCamera

      public FreeFlightCamera(double x, double y)
      Initializes a new instance of the FreeFlightCamera with the specified initial focus.
      Parameters:
      x - The x-coordinate of the initial focus of this instance.
      y - The y-coordinate of the initial focus of this instance.
    • FreeFlightCamera

      public FreeFlightCamera(Point2D focus)
      Initializes a new instance of the FreeFlightCamera with the specified initial focus.
      Parameters:
      focus - The initial focus of this instance.
  • Method Details

    • getVelocity

      public double getVelocity()
    • getScrollPadding

      public double getScrollPadding()
    • setVelocity

      public void setVelocity(double velocity)
    • setScrollPadding

      public void setScrollPadding(double scrollPadding)
    • update

      public void update()
      Description copied from interface: IUpdateable
      This method is called by the game loop on all objects that are attached to the loop. It's called on every tick of the loop and the frequency can be configured using the ClientConfiguration.
      Specified by:
      update in interface IUpdateable
      Overrides:
      update in class Camera
      See Also: