# LookAt

### From K-3D

(Difference between revisions)

Line 6: | Line 6: | ||

== See Also == | == See Also == | ||

- | + | ||

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

## Current revision as of 21:57, 16 July 2010

## Description

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.