From K3D
Description
 Orients a transformation matrix to look at another

Metadata
Properties
Label
 Description
 Type
 Script Name

Input Matrix
 Input matrix
 k3d::matrix4
 input_matrix

Output Matrix
 Output Matrix
 k3d::matrix4
 output_matrix

Target matrix
 Target matrix
 k3d::matrix4
 target_matrix

Notes
LookAt generates a trivial transformation matrix that will orient one node to "look at" another. Specifically, LookAt takes the vector connecting the origins of its two input matrices (the "look" vector), and converts it into a rotation. Note that this process does not preserve any notion of a natural "up" or "down", so an object controlled by LookAt may be rotated around the look vector in nonintuitive ways.
See Also
college essays
ViewMatrix, which has explicit control over the "up" vector.