Jump to content
Search Community

TweenMax: Circlepath2d + TransformAroundCenter - is it possible?

Go! test
Moderator Tag

Recommended Posts

Is it possible to animate object on circle path using Circlepath2d, but also transform it around its center?

 

How to combine:

path = new CirclePath2D(settings.x, settings.y, radius);
or
path = new RectanglePath2D(setting.x, setting.y, setting.xEnd - setting.x, setting.yEnd - setting.y);
or
path = new LinePath2D([new Point(setting.x, setting.y), new Point(setting.xEnd, setting.yEnd)]);

follower = path.addFollower(item);
TweenMax.to(follower, settings.duration, { progress:1 } );

With:

TweenMax.to(item, settings.duration, { transformAroundCenterStarling: { x:settings.x, y:settings.y, scale:toScale}} );
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...