Rotate To Target

This node smoothly rotates a prim object to match a target prim object given a speed and easing factor. At the end of the maneuver, the source prim will have the rotation as the target prim. Note: The Prim must have xform:orient in transform stack in order to interpolate rotations

Installation

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

Inputs

Name

Type

Description

Default

Execute In (execIn)

execution

The input execution

Stop (stop)

execution

Stops the maneuver

sourcePrim

target

The source prim to be transformed

useSourcePath

bool

When true, the ‘sourcePrimPath’ attribute is used, otherwise it will read the connection at the ‘sourcePrim’ attribute

False

sourcePrimPath

path

The source prim to be transformed, used when ‘useSourcePath’ is true

targetPrim

target

The destination prim. The target’s rotation will be matched by the sourcePrim

useTargetPath

bool

When true, the ‘targetPrimPath’ attribute is used, otherwise it will read the connection at the ‘targetPrim’ attribute

False

targetPrimPath

path

The destination prim. The target’s rotation will be matched by the sourcePrim, used when ‘useTargetPath’ is true

speed

double

The peak speed of approach (Units / Second)

1.0

exponent

float

The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc).

2.0

Outputs

Name

Type

Description

Default

Finished (finished)

execution

The output execution, sent one the maneuver is completed