johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

RotateBy is inaccurate #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. RotateBy an object 90 and repeat
2. this will cause the object to slowly loose accuracy say .5 degree per 
rotation

What is the expected output? What do you see instead?

Crisp 90 rotations.

What version of the product are you using? On what operating system?

Unity 3.1, OSX, iTween 2.34

Please provide any additional information below.

Work around. Calculate the new rotation and use RotateTo instead.

Original issue reported on code.google.com by bobby1...@gmail.com on 13 Nov 2010 at 2:48

GoogleCodeExporter commented 8 years ago
I'll see if I can dial in the accuracy.  Rotations have been nothing but a 
challenge while developing iTween but I'm glad there is a fairly simple and 
accurate work around.

Original comment by pixelplacement on 6 Jan 2011 at 5:25

GoogleCodeExporter commented 8 years ago
I also had this problem and I found a workaround. I use the property 
"oncomplete" with the value "FixMe" which is a method. In this method, I set 
the rotation with transform.eulerAngles = new Vector3(0, 0, 0);. You only have 
to set the values for the rotation wanted in the Vector3.

Original comment by DanyMarcoux on 10 Mar 2012 at 9:24