lookAt

fun lookAt(eye: Float3, target: Float3, up: Float3 = Float3(z = 1.0f)): Mat4

Returns a view matrix that positions the camera at eye looking toward target.

Return

the view matrix

Parameters

eye

the camera position in world space

target

the point to look at in world space

up

the world up vector; defaults to +Z