ProtoFlux:FromToRotation: Difference between revisions

From Resonite Wiki
Fixed a description header.
m YoshBot moved page ProtoFlux:From To Rotation to ProtoFlux:FromToRotation: Automated: removing spaces from ProtoFlux namespace
 
(2 intermediate revisions by one other user not shown)
Line 13: Line 13:
|}}
|}}


The '''From To Rotation''' node takes in [https://en.wikipedia.org/wiki/Euler_angles euler angle] values (a starting point and an ending point), and returns a [https://en.wikipedia.org/wiki/Quaternion Quaternion] that has been rotated to the ending point.
The '''From To Rotation''' node takes in two 3D vectors and returns a [https://en.wikipedia.org/wiki/Quaternion Quaternion] representing the rotation from the first vector to the second vector.
 
The output from this node can, for example, be input to a [[ProtoFlux:Mul|Mul_FloatQ_Float3]] node along with the <code>From</code> vector. This will output the same <code>To</code> vector used for the From To Rotation.


== Inputs ==
== Inputs ==


=== From (Pseudo-Generic) ===  
=== From (Pseudo-Generic) ===


The euler angle rotation starting point.
The starting vector to rotate from.


=== To (Pseudo-Generic) ===  
=== To (Pseudo-Generic) ===


The euler angle we want to rotate to.
The ending vector to rotate to.


== Outputs ==
== Outputs ==
Line 29: Line 31:
=== * (Pseudo-Generic) ===
=== * (Pseudo-Generic) ===


Returns a quaternion that has been rotated to the ending point.
A quaternion representing the rotation from the first vector to the second vector.


== See Also ==
== See Also ==
* Wikipedia's definition of [https://en.wikipedia.org/wiki/Quaternion quaternion] & [https://en.wikipedia.org/wiki/Euler_angles euler angles].
 
* [https://en.wikipedia.org/wiki/Quaternion Quaternion (Wikipedia)]


[[Category:ProtoFlux:Math:Rotation]]
[[Category:ProtoFlux:Math:Rotation]]

Latest revision as of 00:20, 21 August 2025

From To Rotation
From
*
To
Rotation

The From To Rotation node takes in two 3D vectors and returns a Quaternion representing the rotation from the first vector to the second vector.

The output from this node can, for example, be input to a Mul_FloatQ_Float3 node along with the From vector. This will output the same To vector used for the From To Rotation.

Inputs

From (Pseudo-Generic)

The starting vector to rotate from.

To (Pseudo-Generic)

The ending vector to rotate to.

Outputs

* (Pseudo-Generic)

A quaternion representing the rotation from the first vector to the second vector.

See Also