Jump to content
Search Community

Constant speed

Miroku_87 test
Moderator Tag

Recommended Posts

Hi greensock!

Is there a way to tween an object with constant speed?

 

I'm already using the formula

duration = distance / velocity;

 

but I see that the tween starts fast then slow down and stop at the wanted coordinates.

I would like it not to happen. Is it possible?

Link to comment
Share on other sites

By default, all tweens use a Quad.easeOut ease because that's the most common thing most folks want (in the real world, movements typically ease out). If you want to avoid any easing, just use the Linear.easeNone ease. Like:

 

TweenLite.to(mc, 1, {x:100, ease:Linear.easeNone});

 

Check out the tips & tricks page. http://www.greensock.com/tweening-tips/

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