IstvanOrosi wrote:If I remember correctly, object rotation values will be between 180 and -180, so your current code will not be able to do what you want. That's why you have to use your own rotation variable and keep track if the object has rotated more than 180 (or -180)
If that's true you could probably just keep track of the rotation value from the previous frame and check if it suddenly flips from positive to negative for large rotation values.