johnatm / itween

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

rotateAdd and rotateBy cause imperfect numeric results #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This will cause irregular numeric values for rotations:

function OnMouseDown(){
  iTween.rotateAdd(gameObject,{"y":360,"time":1});
  iTween.moveAdd(gameObject,{"y":1.0,"time":1});
  iTween.scaleAdd(gameObject,{"y":1.0,"time":1});
} 

This might be caused by JavaScripts math abilities and will be
re-investigated once the 2.0 C# port is done.

Original issue reported on code.google.com by pixelplacement on 28 May 2010 at 2:53

GoogleCodeExporter commented 8 years ago
Nothing more precise than what Unity's environment currently offers can be 
done. Enough head-banging has been done on this.

Original comment by pixelplacement on 8 Aug 2010 at 6:58