Login

Fancade Wiki

"Substruct" these rotations ๐Ÿ”œ "Subtract" these rotations

... ...
@@ -2,7 +2,7 @@ You can get an angle between two [[vector]]s using this method:
2 2
3 3
1. Calculate [[cross product]] of the vectors
4 4
2. Get [[look rotation]] of both vectors with Up equal to the cross product
5
3. [["Subtruct" these rotations|How to subtract rotations?]]
5
3. [["Subtract" these rotations|How to subtract rotations?]]
6 6
4. Get Y component of the resulting rotation (X and Z will equal to 0)
7 7
8 8
*Note:* when you calculate the cross product and "subtract" the rotations, the arguments should be passed in the same order. Otherwise, the angle will be a negative number.
Fancade Wiki