bastrix Posted October 22, 2012 Posted October 22, 2012 Hey all, I understand that TweenMax simulates flash behaviour and always rotates to the nearest point, but I'm having some problems in some ocassions, I'm not exactly sure why... I have a movieclip that has an initial rotation of -161, I want it to rotate to 147. Ok, so with some basic calculations give me the following: A ClockWise ROTATION: - Would take 308 degrees. A CounterClockWise ROTATION: - Would take 51 degrees. However, when I rotate the movieclip it rotates ClockWise direction, which would take longer. What am I missing here? What I did: Placed a movieclip on canvas, set the rotation to -161 and then call this: TweenMax.to(arrow, 1, { rotation:147 }); Many thanks in advance.
bastrix Posted October 22, 2012 Author Posted October 22, 2012 Ah ok I just realized I should have been using "shortRotation", but I still have one question, if I want to use transformMatrix and rotate to the nearest point, I would have to do the calculations myself right?
GreenSock Posted October 23, 2012 Posted October 23, 2012 Actually, transformMatrix will also recognize shortRotation Enjoy.
bastrix Posted October 23, 2012 Author Posted October 23, 2012 Actually, transformMatrix will also recognize shortRotation Enjoy. Thanks !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now