I decided to use tweens to do some object rotations in my game instead of writing the functions myself, but I noticed that the rotation doesn't take the shortest path. For example if the tween is set to start rotation at 350 degrees and end at 10 degrees, instead of rotating in the correct direction by 20 degrees it rotates in the opposite direction by 340 degrees...
Obviously I can write the function myself to make the rotation use the shortest path but then I can't use the built in tween interpolations, which basically means I have to write my own tweening routine..
Couldn't the built in commands be fixed to operate correctly?
Example code to reproduce the situation:
box = CreateObjectBox(5, 5, 5)
SetObjectRotation(box, 0, 350, 0)
box_tween = CreateTweenObject(2)
SetTweenObjectAngleY(box_tween, 350, 10, 3)
do
if GetRawMouseLeftPressed() then PlayTweenObject(box_tween, box, 0)
UpdateAllTweens(GetFrameTime())
Sync()
loop