- Home /
Question by
arvzg · Jun 28, 2017 at 05:37 PM ·
c#itweenbug-perhapsinconsistent
iTween MoveTo: Object doesn't quite reach the target position
Hi,
I'm using iTween to move a few objects around, like this:
iTween.MoveTo(dividerLeft, iTween.Hash("position", new Vector3(-9.34f, dividerLeft.transform.position.y, 0f), "easetype", iTween.EaseType.easeInQuad, "time", 0.4f, "delay", 0.6f));
Which moves the object as desired but sometimes the object never quite reaches the target position completely, like it stops just a tiny bit away from the position, e.g. it will get to -9.264322 instead of -9.34f that I specified in the function call.
If I stop the game and play it again, it'll get to the target, and other times it won't.
What is going on here and how can I make sure it always reaches the target position 100% of the time?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612125056im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Using iTween to move a gameobject from node to node 1 Answer
iTween Rotation not exact 0 Answers
iTween value doesnt change 1 Answer