Jump to content
Search Community

tweening in a range

joselalupa test
Moderator Tag

Recommended Posts

hi, i'm trying to d a tweeing using a compass value so as you know it goes from 1 to 359...if it jumps from 1 to 350 for example it runs over al the numbers in the opposite direction, i know thw short rotation pluggin can determine de way it should rotate but don't have any idea how can i do it...

 

i'm using this line to make the tween, compass.heading is the value in number, any idea is welcome

TweenLite.to(oDAE, 1, {rotationY: compass.heading});

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...