@kognifai/cogsengine
    Preparing search index...

    Function lookAt

    • 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

      • 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