1
DOTween & DOTween Pro / "snapping" a tween to a coordinate system of an object
« on: June 13, 2015, 10:57:49 PM »
Let's say I have a rectangle and inside it I have another smaller one. Smaller one is a child of a bigger one. Now, let's say I tween the smaller rectangle so it repeatedly moves from left to right staying withing the bounds of the parent rectangle. I'm using DOMoveX for that purpose.
The problem happens when I want to move a bigger rectangle around. The smaller one still moves from left to right but is not following the bigger one as it would if there were no tween. Is it possible to achieve this effect of "snapping" a tween to a coordinate system of an object? If I understand it correctly that would require updating tween while it is playing...
Thanks
The problem happens when I want to move a bigger rectangle around. The smaller one still moves from left to right but is not following the bigger one as it would if there were no tween. Is it possible to achieve this effect of "snapping" a tween to a coordinate system of an object? If I understand it correctly that would require updating tween while it is playing...
Thanks