linearly v0.32.0 • Docs
linearly v0.32.0 / mat4 / lookAt
Function: lookAt()
lookAt(
eye
,center
,up
):mat4
Generates a look-at matrix with the given eye position, focal point, and up axis. If you want a matrix that actually makes an object look at another object, you should use targetTo instead.
Parameters
• eye: vec3
Position of the viewer
• center: vec3
Point the viewer is looking at
• up: vec3
vec3 pointing up