For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Function lookAt
-
Parameters
- out: mat4
mat4 frustum matrix will be written into
- eye: ReadonlyVec3
Position of the viewer
- center: ReadonlyVec3
Point the viewer is looking at
- up: ReadonlyVec3
vec3 pointing up
Returns mat4
out
- out: 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.