.. _omni_graph_nodes_GetLookAtRotation_1:

.. _omni_graph_nodes_GetLookAtRotation:

.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================

:orphan:

.. meta::
    :title: Get Look At Rotation
    :keywords: lang-en omnigraph node math:operator threadsafe nodes get-look-at-rotation


Get Look At Rotation
====================

.. <description>

Computes the rotation angles to align a forward direction vector to a direction vector formed by  starting at 'start' and pointing at 'target'. The forward vector is the 'default' orientation of  the asset being rotated, usually +X or +Z

.. </description>


Installation
------------

To use this node enable :ref:`omni.graph.nodes<ext_omni_graph_nodes>` in the Extension Manager.


Inputs
------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "inputs:forward", "``double[3]``", "The direction vector to be aligned with the look vector", "[0.0, 0.0, 1.0]"
    "inputs:start", "``pointd[3]``", "The position to look from", "[0.0, 0.0, 0.0]"
    "inputs:target", "``pointd[3]``", "The position to look at", "[0.0, 0.0, 0.0]"
    "inputs:up", "``double[3]``", "The direction considered to be 'up'. If not specified scene-up will be used.", "None"


Outputs
-------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "outputs:orientation", "``quatd[4]``", "The orientation quaternion equivalent to outputs:rotateXYZ", "None"
    "outputs:rotateXYZ", "``double[3]``", "The rotation vector [X, Y, Z]", "None"


Metadata
--------
.. csv-table::
    :header: "Name", "Value"
    :widths: 30,70

    "Unique ID", "omni.graph.nodes.GetLookAtRotation"
    "Version", "1"
    "Extension", "omni.graph.nodes"
    "Has State?", "False"
    "Implementation Language", "C++"
    "Default Memory Type", "cpu"
    "Generated Code Exclusions", "None"
    "uiName", "Get Look At Rotation"
    "Categories", "math:operator"
    "Generated Class Name", "OgnGetLookAtRotationDatabase"
    "Python Module", "omni.graph.nodes"

