macrobin / dotween

Automatically exported from code.google.com/p/dotween
0 stars 0 forks source link

Tween doesn't end at precise value when using Ease.inExpo #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using this code:

float powerLevel = 0f;
DOTween.To (()=>powerLevel, x=>powerLevel=x, 9001f, 1f).SetEase(Ease.InExpo);

I'd expect the powerLevel to be over 9000, but it stops tweening at 8991.999 :(

What version of the product are you using? On what operating system?
DOTween 0.9.150 release build, Mac OS 10.9, Unity 5, 64 bit.

Great job, keep it up! Cheers,
Marek B from SUPERHOT the game.

Original issue reported on code.google.com by marek.b...@gmail.com on 8 Oct 2014 at 8:02

GoogleCodeExporter commented 9 years ago
Hi Marek,

ouch, that was indeed a bug. I fixed it and now it will finish the tween at the 
exact number you set as the end value. I'm attaching the update (0.9.165) here 
and will release it publicly tomorrow.

That said, glad you like it, and woah, I (as many others indeed) love Superhot!

Original comment by daniele....@gmail.com on 8 Oct 2014 at 9:11

Attachments:

GoogleCodeExporter commented 9 years ago
Wow, that was fast! Thanks! :)

Well WE love HOTween. (and are now slowly moving towards DOTween).

Cheers!
Marek B.

Original comment by marek.b...@gmail.com on 9 Oct 2014 at 1:06

GoogleCodeExporter commented 9 years ago
Glad to hear it! Highfive and cheers! :)

Original comment by daniele....@gmail.com on 9 Oct 2014 at 8:09