Set Rotation

Sets the rotation of the given matrix4d value which represents a linear transformation. Does not modify the translation (row 3) of the matrix. Accepts an angle/axis combination, Euler angles, quaternions or rotation matrices

Installation

To use this node enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Rotation Axis (inputs:fixedRotationAxis)

token

The axis of the given rotation

Y

Metadata

allowedTokens = X,Y,Z,Custom

Matrix (inputs:matrix)

['matrixd[4]', 'matrixd[4][]']

The matrix to be modified

None

Rotation (inputs:rotationAngle)

['double', 'double[]', 'matrixd[3]', 'matrixd[3][]', 'quatd[4]', 'quatd[4][]', 'vectord[3]', 'vectord[3][]']

The rotation to be applied to the matrix. This can be a angle about an axis, euler angles, quaternion or a rotation matrix.

None

Custom Rotation Axis (inputs:rotationAxis)

vectord[3]

The axis of rotation when fixedRotationAxis is set to Custom

[0, 1, 0]

Rotation Order (inputs:rotationOrder)

token

The order the rotation should be applied when using euler angles.

XYZ

Metadata

allowedTokens = XYZ,XZY,YXZ,YZX,ZXY,ZYX

Outputs

Name

Type

Descripton

Default

Matrix (outputs:matrix)

['matrixd[4]', 'matrixd[4][]']

The updated matrix

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.SetMatrix4Rotation

Version

2

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Set Rotation

Categories

math:operator

Generated Class Name

OgnSetMatrix4RotationDatabase

Python Module

omni.graph.nodes