Custom Easing Types using Curves for Motion?

Hello,
I would like to make a function which if given the Startpoint, Current Position & End Point will give me back the speed I should be travelling at (or a co-efficient) for easing motion.

If possible, I would like to know how to do you define such an easetype curve similar to an animation curve GUI that we get in the Inspector.

Or can I just get it through iTween? Like say I specify a percentage of distance travelled and it will return the current speed-coefficent/multiplier I should be using?

Thank you :slight_smile:

LeanTween supports Animation Curves allowing you to have a custom tween. You can define the curve type you would like by exposing an AnimationCurve property in the inspector, and then pass this to the LeanTween engine to tween any property you would like.

It can be downloaded here: LeanTween | Animation Tools | Unity Asset Store

It is also much faster than competing tweening engines like iTween, making it ideal for mobile games (or any time performance is an issue). In case you are interested here are speed comparison results:
http://dentedpixel.com/developer-diary/leantween-speed-comparison-to-itween/

Yeh I came here to say if you are making plenty of different things like this then you should learn how to use the itween code it’s really simple.

It sounds like what you want is animation curves :