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 enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Execute In (inputs:execIn)

execution

Signal to the graph that this node is ready to be executed.

None

Exponent (inputs:exponent)

float

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

2.0

Source Prim (inputs:sourcePrim)

target

The source prim to be transformed

None

Source Prim Path (inputs:sourcePrimPath)

path

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

None

Speed (inputs:speed)

double

The peak speed of approach (Units / Second)

1.0

Stop (inputs:stop)

execution

Signal to the graph that this node is ready to stop the maneuver.

None

Target Prim (inputs:targetPrim)

target

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

None

Target Prim Path (inputs:targetPrimPath)

path

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

None

Use Source Path (inputs:useSourcePath)

bool

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

False

Use Target Path (inputs:useTargetPath)

bool

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

False

Outputs

Name

Type

Descripton

Default

Finished (outputs:finished)

execution

When the maneuver is completed, signal to the graph that execution can continue downstream.

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.RotateToTarget

Version

2

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Rotate To Target

Categories

sceneGraph

Generated Class Name

OgnRotateToTargetDatabase

Python Module

omni.graph.nodes