OmniGraph Node omni.graph.nodes.GetLookAtRotation¶
omni.graph.nodes.GetLookAtRotation Properties¶
Name |
Value |
---|---|
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 |
omni.graph.nodes.GetLookAtRotation 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
omni.graph.nodes.GetLookAtRotation Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:forward |
double[3] |
[0.0, 0.0, 1.0] |
Y |
The direction vector to be aligned with the look vector |
__default |
[0.0, 0.0, 1.0] |
|||
inputs:start |
double[3] |
[0.0, 0.0, 0.0] |
Y |
The location to look from |
inputs:target |
double[3] |
[0.0, 0.0, 0.0] |
Y |
The location to look at |
omni.graph.nodes.GetLookAtRotation Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:orientation |
quatd[4] |
None |
Y |
The orientation quaternion equivalent to outputs:rotateXYZ |
outputs:rotateXYZ |
double[3] |
None |
Y |
The rotation vector [X/Pitch, Y/Yaw, Z/Roll] |