Jump to content
Search Community

ThrowPropsPlugin - object follow spiral path?

snowhiterw test
Moderator Tag

Recommended Posts

Hi and welcome to the GreenSock forums.

 

ThrowPropsPlugin can tween the velocity of any property so it can tween horizontal motion just as easily as it can rotation. For doing spiral motion it is going to be quite tricky to do that in a single tween.

 

Here is a little snippet of spiral animation code for JavaScript

 

http://www.html5code.nl/canvas-tutorial/tutorial-canvas-animation-spiral-movement/

 

the syntax is very similar to ActionScript but its the mathematical concepts that will hopefully help a little. It's definitely possible that once you figure out how to programmatically generate spiral animation that you could use ThrowPropsPlugin to tween a velocity value. It is a fairly ambitious undertaking and not something that we can just whip together for you.

Link to comment
Share on other sites

One other random idea (which may or may not prove useful/doable) is to just use a Bezier for the spiral, create a tween along that path using a Linear.easeNone ease, pause it, and then you could "throw" its "progress" or "time" value. Probably not a perfect solution, but I figured I'd throw it out there (pun intended). :)

  • Like 1
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...