I have been struggling during my last couple of coding sessions with a strange behavior I have discovered (Defold -1.2.81).
In a nutshell, when animating the euler property on the z-axis, if you go over 90 deg. (using go.animate) and apply any other animation (such a going back to 0 deg.), the rotation applied will be the opposite of what would be expected.
I would expect this kind of behaviour when going 180 deg. not 90.
I’ve bundled together a test collection in a debug project that you can easily reproduce this. Please find it here:
It’s also interesting to notice that when using go.get() to retrieve the current value of “euler.z”, it gives strange result and visuals when the game object is over 90 and less than it’s final rotation value.