Camera2D

class Camera2D : Camera {
Vector3 Position;
float Rotation;
float RotationY;
float RotationX;
float Zoom;
Vector3 Origin;
}

Members

Functions

Project
Matrix4x4 Project(float width, float height)

Creates an othrographic projection with the specified width and height.

Update
void Update()

Update the camera rotation, scale and translation.

Inherited Members

From Camera

Update
void Update()

Update the camera rotation, scale and translation.

Project
Matrix4x4 Project(float width, float height)

Creates a dimension dependant projection. (Recommended)

ProjectPerspective
Matrix4x4 ProjectPerspective(float width, float fov, float height)

Creates an perspective projection with the specified width and height.

ProjectOrthographic
Matrix4x4 ProjectOrthographic(float width, float height)

Creates an othrographic projection with the specified width and height.

Meta