Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Operator-LookAT.md
2024-08-26 23:07:20 +03:00

18 lines
835 B
Markdown

# Look At
Menu Path : **Operator > Math > Vector**
The **Look At** Operator calculates the [Look-At](https://docs.unity3d.com/ScriptReference/Transform.LookAt.html) Transform from position A to position B, given an up vector.
## Operator properties
| **Input** | **Type** | **Description** |
| --------- | --------- | ----------------------------------------- |
| **From** | Position | The position of the source (the watcher). |
| **To** | Position | The target position (the subject). |
| **Up** | Direction | The up vector this Operator uses. |
| **Output** | **Type** | **Description** |
| ---------- | --------- | ----------------------------------------------- |
| **Output** | Transform | The look-at Transform this Operator calculates. |