khangnhfuky / hotween

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

FixedUpdate Yoyo loopType leads to visual glitch #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. In a Behaviour, write:Tweener tween = HOTween.To(transform, 2, new 
TweenParms().Loops(2,LoopType.Yoyo).Prop("localPosition",new 
Vector3()).UpdateType(UpdateType.FixedUpdate));

2.Play
3.See

What is the expected output? What do you see instead?

Expected: Smooth sailing
Instead:When the first (only the first) iteration of the loop ends, it glitches 
back to it's starting position for a frame, then continues the tween as normal.

What version of the product are you using? On what operating system?
v1.1.860

Please provide any additional information below.
Really easy to reproduce, happens everytime on my machine.

Original issue reported on code.google.com by aDazeH...@gmail.com on 10 Dec 2013 at 10:00

GoogleCodeExporter commented 9 years ago
Thanks for the report, I'll check it out in these days.

Original comment by daniele....@gmail.com on 11 Dec 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Took me some time to understand what was happening, but now it's fixed (it was 
due to floating point imprecision). You can get the updated version here: 
http://www.holoville.com/hotween/files/tmp_HOTween_v_1.1.890.zip

Original comment by daniele....@gmail.com on 5 Jan 2014 at 11:12