I'm facing problem of the operations on rotations. I have a wheel with a start rotation of (0, 0, 0). The player has to rotate wheel 270 degrees in Y axis either left or right.
During the rotation slider should indicate progress of the rotation. For example if player rotated 135 degrees in right direction, slider is 50% filled to the right.
The thing is that I'm not sure how to get the value of which the player rotate the object. For example when I start rotating right my angle changes from (0, 0, 0) to (0, 359, 0). How can I resolve this issue so it knows that change from (0, 0, 0) to (0, 359, 0) means player rotated only +1 degree?
rotateWheel(-5)
orrotateWheel(5)
instead of just directly setting the wheel's rotational value to the user's input. This would allow you to see where the wheel was, where it is moving to, as well as what direction it's moving (and how fast) without having to do extra calculations and predictions to try and get it right. Although that may not be an option. \$\endgroup\$