I try to rotate objects in the same direction as a reference object.
Normaly this would be easy:
object1.rotation = reference.rotation
But the same rotation can be expressed with different vectors:
(0, 45, 270) is the same as (0, 225, 90)
(0, 0, 270) is the same as (0, 180, 90)
In my case the final rotation should account for this.
The reference object has a rotation of: (0, 45, 270)
Object1 Should Rotate from (0, 45, 270) to (0, 0, 270)
Object2 Should Rotate from (0, 225, 90) to (0, 180, 90)
How can i calculate this? Im using unity if this is any help.