I have a little issue, I'm rotating an object. I want rounded values for rotating the object for efficiency.
TweenLite.to(this, 1, { rotation:rotation+100 });
//Output rotation values
//83.02559999999998, 85.55999999999999, 88.02839999999999, 90.1404, 92.16, 93.8496
so I tried this
TweenLite.to(this, 1, { rotation:rotation+100, onUpdate:function()
{
rotation = Math.round(rotation);
}
});
But to no avail. Any ideas ?