Jump to content
Search Community

Tweening to point via an arc - is it possible?

KTrentLR test
Moderator Tag

Recommended Posts

Is it possible to tween to an arc? For example TweenMax.to(mc,1,{_x:##,_y:##,Arc{height:pixels, orientation:degree}}).

 

To where the center point is calculated, and the arc is calculated based on the height, then the arch direction is plotted out using the orientation value...

 

Or is there something already built somewhere that'll do something like this?

Link to comment
Share on other sites

There isn't anything built-in that does EXACTLY that, but you have a few options:

 

1) Use bezier tweening.

 

2) Build your own class that just handles positioning an item on an arc like you mentioned (no animation). Build it with a getter/setter (like maybe "angle" or "position") that plots the position for you. Then you just tween that property to make it move.

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...