Camera3D

A basic 3D camera, optimized for use in 3D environments.

Constructors

this
this(Vector3 position, Quaternion rotation, float zoom, float near, float far, float fov)
Undocumented in source.

Members

Functions

Project
Matrix4x4 Project(float width, float height)

Creates an perspective projection with the specified width and height.

Update
void Update()

Update the camera rotation, scale and translation.

Variables

Position
Vector3 Position;
Undocumented in source.
Rotation
Quaternion Rotation;
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