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/ | 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 | The starting vector to rotate from. | ||
=== To (Pseudo-Generic) === | === To (Pseudo-Generic) === | ||
The | The ending vector to rotate to. | ||
== Outputs == | == Outputs == | ||
Line 29: | Line 31: | ||
=== * (Pseudo-Generic) === | === * (Pseudo-Generic) === | ||
A quaternion representing the rotation from the first vector to the second vector. | |||
== See Also == | == See Also == | ||
* | |||
* [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
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.