Fixed a description header. |
correct |
||
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 ( | === From ([[Type:float3|float3]]) === | ||
The | The starting vector to rotate from. | ||
=== To ( | === To ([[Type:float3|float3]]) === | ||
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]] |
Revision as of 17:06, 16 April 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 (float3)
The starting vector to rotate from.
To (float3)
The ending vector to rotate to.
Outputs
* (Pseudo-Generic)
A quaternion representing the rotation from the first vector to the second vector.