Let's say we have two rotated objects, there Euler-Angles are:
Object | x | y | z
1 | 180 | 360 | 180
2 | -360 | -720 | 360
Both use rotate order XYZ
. When rotation is zero the local Y-axis
is pointing up.
I'm trying to get the difference in Spins around their local Y-axis
. As if there would be a string between the bottoms of Object 1
and Object 2
connected when all orientations were 0,0,0
. How many times would the string have spun around / twisted?
Some examples:
#1 | 0, 360, 0
#2 | 0, 0, 0
1 full twist
#1 | 0, 180, 0
#2 | 0, 0, 0
1/2 twist
#1 | 360, 0, 0
#2 | 0, 0, 0
1 twist. (think about the string that was attached to it, this would also count as a twist in the string)
--
I've been looking into orientation/rotation and it's different ways of using them, like Quaternions, Euler-Angles and Axis-Angle. I feel like I know how each work in general yet miss the skills for solving this.
Any ideas on how to solve this?