Houdini 21.0 Nodes APEX nodes

transform::SmoothRotation

Finds the closest Euler angles to a reference rotation.

On this page
Since 20.0

Produces a smooth rotation by finding the closest Euler angles to a reference rotation. The resultant Euler angles produce the same orientation as the input Euler angles, but their rotation angles are as close as possible to the reference’s rotation angles.

Inputs

a: Vector3

The input rotation given as Euler angles, in degrees. The rotation order is determined by rord. Both a and b must share the same rotation order.

b: Vector3

The reference rotation given as Euler angles, in degrees. The rotation order is determined by rord. Both a and b must share the same rotation order.

rord: Int

The rotation order to apply the Euler angles. The default value is XYZ.

Port Value

Rotation Order

0

XYZ

1

XZY

2

YXZ

3

YZX

4

ZXY

5

ZYX

Outputs

dot: Vector3

The closest Euler angles, in degrees, to the reference orientation.

APEX nodes