ProtoFlux:FromToRotation: Difference between revisions

From Resonite Wiki
Fixed a description header.
correct
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 ([[Type:float3|float3]]) ===


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


=== To (Pseudo-Generic) ===  
=== To ([[Type:float3|float3]]) ===


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]]

Revision as of 17:06, 16 April 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 (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.

See Also