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 in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Forward (inputs:forward)

double[3]

The direction vector which is to be aligned

[0.0, 0.0, 1.0]

From (inputs:start)

pointd[3]

The position to look from

[0.0, 0.0, 0.0]

Target (inputs:target)

pointd[3]

The position to look at

[0.0, 0.0, 0.0]

Up (inputs:up)

double[3]

The direction of the up vector, if not specified USD scene-up will be used.

None

Outputs

Name

Type

Descripton

Default

Orientation (outputs:orientation)

quatd[4]

The calculated orientation quaternion, which is equivalent to ‘Rotation (XYZ)’

None

Rotation (XYZ) (outputs:rotateXYZ)

double[3]

The calculated rotation vector, as XYZ

None

Metadata

Name

Value

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