- Home /
iTween not precise?
hi folks!
i try to rotate a gameobject with iTween and after some rotations you can see that the rotation isn't very exact because the gameobject is not exactly at 0 or 180 degrees
iTween.RotateAdd(thePlayfield, iTween.Hash("z", 180f, "time", 1.5f, "delay", 0.5f, "transition", "easeInOutExpo"));
why is that? thanx!
I have the same problem. With finger swipes I rotate an object but the resulting rotations are not exactly 0, 90, 180 etc. (I use RotateAdd). Seems nobody but us has this problem...
sme here it might be realted to gimbal lock? http://forum.unity3d.com/threads/47373-iTween-rotateBy-not-rotating-as-expected
Answer by Baroni · Jan 25, 2011 at 03:48 PM
If your gameobject has a rigidbody attached and uses gravity, this gravity will be added to your rotation or positioning iTween method. I had this problem a few days ago, my positioning was not precise. Then I used 2 methods, one called with "onstart", the other with "oncomplete", to turn on rigidbody.isKinematic on the iTween call, and turn it off again at the end.
Your answer
Follow this Question
Related Questions
Weird offsets by iTween? 1 Answer
iTween.RotateFrom and Euler angles 0 Answers
iTween.RotateAdd Gives Wrong Results 0 Answers
iTween Edit Rotation Visually 0 Answers
Roll a ball in a circle around an object 2 Answers