Get Look At Rotation#
Computes the rotation angles to align the ‘Forward’ direction vector to the vector formed by starting at ‘From’ and pointing at ‘Target’. The ‘Forward’ vector is the current orientation of the Prim being rotated which usually starts at +X or +Z. The ‘Up’ vector defines the desired orientation of the rotation.
Installation#
To use this node enable omni.graph.nodes_core in the Extension Manager.
Inputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Forward (inputs:forward) |
|
The direction vector which is to be aligned |
[0.0, 0.0, 1.0] |
From (inputs:start) |
|
The position to look from |
[0.0, 0.0, 0.0] |
Target (inputs:target) |
|
The position to look at |
[0.0, 0.0, 0.0] |
Up (inputs:up) |
|
The direction of the up vector, if not specified USD scene-up will be used. |
None |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Orientation (outputs:orientation) |
|
The calculated orientation quaternion, which is equivalent to ‘Rotation (XYZ)’ |
None |
Rotation (XYZ) (outputs:rotateXYZ) |
|
The calculated rotation vector, as XYZ |
None |
Metadata#
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.GetLookAtRotation |
Version |
1 |
Extension |
omni.graph.nodes_core |
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_core |