The camera extends the selected viewport of the world so this matches the screen size of the device. The position field referes to the position of the center of the camera.
All the projection and view matrix operations are hidden in the implementation. Using the camera is the easy way to move around a game world without having to manually operate on the matrices. project/unproject points to and from window coordinate/ world space.
The Camera class operates as a very simple real world camera. The orthographic camera is to be used in 2D environments only as it implements a parallel (orthographic) projection and there will be no scale factor for the final image regardless where the objects are placed in the world.Ĭode for a simple example of a Camera zooming and moving is available on here Description This page presents the OrthographicCamera class and usage.