Jump to content
Search Community

parabolic motion

Craig Murray test
Moderator Tag

Recommended Posts

What would be a clean and flexible solution to generate parabolic or other non-linear motion? My first thought is to tween the x and y seporatly and use speedups and slowdowns but that seems like a lame solution.

 

I'm sure this has come up before and I suspect TweenLite/Max has a clean solution for this, I'm just not finding any examples of it yet.

Link to comment
Share on other sites

For non-linear stuff, you could also check out the motion path stuff in the com.greensock.motionPaths package. It isn't for curves yet, but if you wanted to do lines, circles, rectangles, etc. you could do it. For example: http://www.greensock.com/as/docs/tween/ ... ath2D.html

 

You could also consider a CirclePath2D that's squished a bit in one direction (width/height/scaleX/scaleY, whatever) and just use part of it (like tween from progress 0 to 0.5). Just a few ideas.

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