From To Rotation (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
From To Rotation
noframe
Inputs
  Float3 From
  Float3 To
Outputs
  FloatQ *

The From To Rotation LogiX node creates a rotation represented as a native quaternion which rotates the first (From) vector to the second (To) vector.

Usage

This node can be used to apply a rotation so that the From vector, e.g. a vector along the Y axis, follows a target direction (the To vector).

Examples

Here we want a rotation that rotates a vector along the X axis to a point along a vector halfway between the X and Y axes, or in other words, points the X vector in that direction.

From To Rotation Example.jpg

The resulting rotation is 45 degrees about the Z axis.

Node Menu

(Top) → MathRotation → From To Rotation

Math / Rotation
Back Axis Angle Euler Angles From Euler From To Rotation Inverse Rotation Look Rotation
To Axis Angle