Hi,
I have a simple tween:
TweenLite.to(_mainWheel.wof, _speed, {rotation:(_suspension*2) + (_prizeIndex * _pieAngle), immediateRender:true, useFrames:false, ease:Expo.easeOut, onUpdate:checkPosition, onStart:removeEventListeners, onComplete:mainAnimationFinished });
So, I`m trying to catch it`s rotation angle using checkPosition which is called onUpdate.
private function checkPosition():void
{
trace (_mainWheel.wof.rotation);
}
Is there any change I get this value accurate?
I`m receiving
AS you can notice, first traced value is:
-160
and second:
-73
which is more than double difference between that two.
I simply need that to be accurate so if my start roration position is 0, when I run rotation tween and trace it value i get:
Anyway, this problem happens only when I run my tween really fast, so I presume this is only because script cannot render rotation that accurate.
What would you suggest as solution for this problem?
Thanks