Direction to Rotation
 
 
 

Categories

  • Conversion

  • Rotation

Description

Outputs a rotation built from two vectors that will align the Y axis to the Point At vector. The Up Vector value constrains the spin of the object around the Point At vector. The Up Vector is in the XY plane of the rotated space.

The input vectors must not be colinear (point in the same or opposite directions) in order to specify a valid rotation.

Ports

Inputs

Point At

The vector the Y axis is aligned to after the rotation.

Up Vector

A vector that constrains the spin. That vector will be in the XY plane of the rotated space.

Outputs

Rotation

The output rotation.

Valid

Indicates whether the input values define a valid rotation. A rotation is invalid when both Point At and Up Vector values are colinear (point in the same or opposite directions).