math.lookAt

From Wake
Jump to: navigation, search

Create a look at view matrix.

Function

Synopsis

result = math.lookAt(eye, center, up)

Arguments

Vector3 eye

The position of the camera.


Vector3 center

The position the camera is looking at.


Vector3 up

The camera's up vector, usually {0, 1, 0}.

Returns

Matrix4x4 result

The view matrix.

See Also