Camera2D

Undocumented in source.

Constructors

this
this(Vector2 position, float depth, float rotation, float zoom, float near, float far)
Undocumented in source.

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.

Variables

Depth
float Depth;
Undocumented in source.
Origin
Vector2 Origin;
Undocumented in source.
Position
Vector2 Position;
Undocumented in source.
Rotation
float Rotation;
Undocumented in source.
RotationX
float RotationX;
Undocumented in source.
RotationY
float RotationY;
Undocumented in source.
Zoom
float Zoom;
Undocumented in source.

Inherited Members

From Camera

matrix
Matrix4x4 matrix;
Undocumented in source.
znear
float znear;
Undocumented in source.
zfar
float zfar;
Undocumented in source.
Matrix
Matrix4x4 Matrix [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Matrix
Matrix4x4 Matrix [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
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.

ProjectOrthographicInv
Matrix4x4 ProjectOrthographicInv(float width, float height)

Creates an othrographic projection with the specified width and height.

Meta