LookAt

From K-3D

Revision as of 21:57, 16 July 2010 by Tshead (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Image:LookAt.png Orients a transformation matrix to look at another
Plugin Status:Stable
Categories:All Plugins, Stable Plugins, Transform Plugins

Metadata

Name Value

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

ViewMatrix, which has explicit control over the "up" vector.

Personal tools