iTween 1.0 rotateAdd() not working correctly

I’m using iTween.rotateAdd() on an object and rotating it by 60 degrees each time, but it’s not a perfect 60 degrees when I check the game object after after a few rotations. Here is what I have. I don’t wish to upgrade to 2.0 yet since it states it’s no compatible and I don’t wish to rework my stuff. What am I doing wrong?

Hashtable t = new Hashtable();
						t.Add("time", rotationSpeed);
						t.Add("delay", rotationDelay);
						t.Add("amount", rot);
						t.Add("onComplete", "OnRotateComplete");
						t.Add("onCompleteParams", "");
						t.Add("onCompleteTarget", this.gameObject);
						//t.Add("onCompleteTarget", hittedObj);
						
						iTween.rotateAdd(selectedObj, t);

There are known rotational issues with 1.0 (they may still be around in 2.0) but how off are the numbers you are getting? My guess is that they are incredibly close and if that’s the case you could always have a variable you increment along with each rotation which holds what the value should be at the end of each rotation. You could then use this variable to “dial in” your values with an “onComplete” callback.

Cool?

OK, yeah I just tried that. That seems to work, but there still seems to be some bug where it’s rotating one to many sometimes (not all the time).

I’m not really supporting iTween 1 any more as it was a quick ugly mess. I’d really suggested you taking a look at version 2 when you can.

Good luck!