Closed GoogleCodeExporter closed 8 years ago
I am confused about your values, since both the expected result and the actual
position are wrong:
Expected result, at tween startup and time at zero, should be for the object's
position to be at 100,100,100, and then to tween to 200,100,100 over a second
(after the delay has elapsed).
Can you tell me if you were expecting something different, or else? I tried to
replicate it, and everything behaves correctly here.
Original comment by daniele....@gmail.com
on 30 Dec 2013 at 3:03
[deleted comment]
Put that on a game object :
public class Foo : MonoBehaviour
{
public float timeToTranslate = 0;
void Start ()
{
transform.position = new Vector3 ( 100, 100 );
HOTween.To ( transform, 0, new TweenParms ().Prop ( "localPosition", new Vector3 ( 100, 0, 0 ), true ) );
}
}
After the tweening occurs, the position is 100,0,0. Was expected a position at
200,100,0. Note that tweening is relative (third parameter of new TweenParms
().Prop is true). Note that the duration is zero, which seems to make the bug
occurs.
Regards
Original comment by alexispa...@gmail.com
on 30 Dec 2013 at 7:13
Oh now I understand. I tried to replicate it and indeed it's a bug, and a weird
one. Working on it right now.
Original comment by daniele....@gmail.com
on 3 Jan 2014 at 1:27
Fixed it :) Can you check it out as an additional tester and let me know? You
can get the latest DLL from the bin here on Google Code:
https://code.google.com/p/hotween/source/browse/#svn%2Ftrunk%2FHoloville%2Fbin
Original comment by daniele....@gmail.com
on 3 Jan 2014 at 3:47
Original comment by daniele....@gmail.com
on 5 Jan 2014 at 11:26
Original issue reported on code.google.com by
alexispa...@gmail.com
on 29 Dec 2013 at 10:04