"Substruct" these rotations ๐ "Subtract" these rotations
commited
commit
45f0038c720a55e58054a8ae502e154295eca06b
... | ... | @@ -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. |