Get Look At Rotation

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

Installation

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

start

pointd[3]

The position to look from

target

pointd[3]

The position to look at

forward

double[3]

The direction vector to be aligned with the look vector

[0.0, 0.0, 1.0]

up

double[3]

The direction considered to be ‘up’. If not specified scene-up will be used.

Outputs

Name

Type

Description

Default

rotateXYZ

double[3]

The rotation vector [X, Y, Z]

orientation

quatd[4]

The orientation quaternion equivalent to outputs:rotateXYZ