Combine: Difference between revisions

From Fancade Wiki
(Created page with "Combines two rotations into one. File:Combine1.png == Note == Note that the operation is 0%/not commutative, which means that changing the order of the [rotations](Rotation) can change the result. File:Screenshot_20220130-232951.png Category:Blocks ")
 
(Updated and revisited the page)
 
Line 1: Line 1:
Combines two rotations into one.
{{Block
|image=Combine.png
|type=s
|folder=math
|input1={{Port|r|Rot1}}
|input2={{Port|r|Rot2}}
|output1={{Port|r|Rot1 * Rot2}}
}}
Combines two [[rotation]]s into one.


[[File:Combine1.png]]
== Notes ==
* Rotations are combined in the order Y, X, Z, which means ''Rot1'' is first rotated around the Y axis by the Y value of ''Rot2'', then the X axis, then the Z axis.
* The operation is not commutative, which means that changing the order of the rotations can change the result.


== Note ==
[[File:Combine example.jpg|frameless|center|Order of the inputs matters]]
Note that the operation is 0%/not commutative, which means that changing the order of the [rotations](Rotation) can change the result.
[[File:Screenshot_20220130-232951.png]]




[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 14:14, 17 May 2024

Combine
Combine.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Rot1
Rot2
Outputs Rot1 * Rot2

Combines two rotations into one.

Notes

  • Rotations are combined in the order Y, X, Z, which means Rot1 is first rotated around the Y axis by the Y value of Rot2, then the X axis, then the Z axis.
  • The operation is not commutative, which means that changing the order of the rotations can change the result.
Order of the inputs matters
Order of the inputs matters