Houdini 21.0 Nodes APEX nodes

transform::LookAt 2.0

Rotates a matrix’s local “look at axis” toward a target.

On this page
Since 20.5

The input xform is rotated so that its local lookataxis points at the position of the lookat target, and its local lookupaxis is aligned with the lookup target. For example, if you want the +X axis of the input xform to point toward the lookat target, set lookataxis to have a value of Vector3(1, 0, 0).

Inputs

xform: Matrix4

The input matrix to rotate to the target orientation. Scales, shears, and reflections unchanged in the output matrix (only the orientation is adjusted).

lookat: Matrix4

The position of the look at target.

lookup: Matrix4

The position of the look up target.

lookataxis: Vector3

The local vector of the xform matrix to align with the lookat target.

lookupaxis: Vector3

The local vector of the xform matrix to align with the lookup target.

Outputs

xform: Matrix4

The input matrix with its orientation adjusted to align with the look at target.

APEX nodes