Skip to content

raylib.MatrixLookAt

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get camera look-at matrix (view matrix)

Parameters

Parameter Default Value Note
eye [0, 0, 1]
target [0, 0, 0]
up [0, 1, 0]

Return value

Condition Return Value
(always) map

Notes

Example

eye    = [0, 5, 10]
target = [0, 0,  0]
up     = [0, 1,  0]
view = raylib.MatrixLookAt(eye, target, up)

Clone this wiki locally